Commit 2ff99ca4 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Mauro Carvalho Chehab

media: videobuf2: remove redundant if-statement

That if-statement seems to be unneeded.
Signed-off-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent a9a2c823
...@@ -152,7 +152,6 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs, ...@@ -152,7 +152,6 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs,
if (!buf) if (!buf)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
if (attrs)
buf->attrs = attrs; buf->attrs = attrs;
buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr, buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr,
GFP_KERNEL | gfp_flags, buf->attrs); GFP_KERNEL | gfp_flags, buf->attrs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment