提交 692f6375 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

[media] davinci: remove an unneeded check

We don't need to check "ret", we know it's zero.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 271430ef
...@@ -442,11 +442,10 @@ static int vpfe_config_image_format(struct vpfe_device *vpfe_dev, ...@@ -442,11 +442,10 @@ static int vpfe_config_image_format(struct vpfe_device *vpfe_dev,
return ret; return ret;
/* Update the values of sizeimage and bytesperline */ /* Update the values of sizeimage and bytesperline */
if (!ret) { pix->bytesperline = ccdc_dev->hw_ops.get_line_length();
pix->bytesperline = ccdc_dev->hw_ops.get_line_length(); pix->sizeimage = pix->bytesperline * pix->height;
pix->sizeimage = pix->bytesperline * pix->height;
} return 0;
return ret;
} }
static int vpfe_initialize_device(struct vpfe_device *vpfe_dev) static int vpfe_initialize_device(struct vpfe_device *vpfe_dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册