Skip to content

Commit 2ff99ca

Browse files
sergey-senozhatskymchehab
authored andcommitted
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>
1 parent a9a2c82 commit 2ff99ca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/media/common/videobuf2/videobuf2-dma-contig.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs,
152152
if (!buf)
153153
return ERR_PTR(-ENOMEM);
154154

155-
if (attrs)
156-
buf->attrs = attrs;
155+
buf->attrs = attrs;
157156
buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr,
158157
GFP_KERNEL | gfp_flags, buf->attrs);
159158
if (!buf->cookie) {

0 commit comments

Comments
 (0)