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>
This commit is contained in:
parent
a9a2c82360
commit
2ff99ca4bc
|
@ -152,7 +152,6 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs,
|
|||
if (!buf)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
if (attrs)
|
||||
buf->attrs = attrs;
|
||||
buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr,
|
||||
GFP_KERNEL | gfp_flags, buf->attrs);
|
||||
|
|
Loading…
Reference in New Issue