diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2020-05-14 19:01:52 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-06-23 14:40:10 +0300 |
commit | 2ff99ca4bc30895f7e061f1fc0e510f19bd032bb (patch) | |
tree | 0c97f8ea19ea04f42c75f5c8467f8ef39085f19a /drivers/media/common/videobuf2 | |
parent | a9a2c823601789e9f59ec75f13d0ef03138c04a4 (diff) | |
download | linux-2ff99ca4bc30895f7e061f1fc0e510f19bd032bb.tar.xz |
media: videobuf2: remove redundant if-statement
That if-statement seems to be unneeded.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/common/videobuf2')
-rw-r--r-- | drivers/media/common/videobuf2/videobuf2-dma-contig.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/common/videobuf2/videobuf2-dma-contig.c b/drivers/media/common/videobuf2/videobuf2-dma-contig.c index a753a03bc48e..ec3446cc45b8 100644 --- a/drivers/media/common/videobuf2/videobuf2-dma-contig.c +++ b/drivers/media/common/videobuf2/videobuf2-dma-contig.c @@ -152,8 +152,7 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs, if (!buf) return ERR_PTR(-ENOMEM); - if (attrs) - buf->attrs = attrs; + buf->attrs = attrs; buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr, GFP_KERNEL | gfp_flags, buf->attrs); if (!buf->cookie) { |