mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +08:00
[media] davinci: remove an unneeded check
We don't need to check "ret", we know it's zero. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
271430efb2
commit
692f637522
@ -442,11 +442,10 @@ static int vpfe_config_image_format(struct vpfe_device *vpfe_dev,
|
||||
return ret;
|
||||
|
||||
/* Update the values of sizeimage and bytesperline */
|
||||
if (!ret) {
|
||||
pix->bytesperline = ccdc_dev->hw_ops.get_line_length();
|
||||
pix->sizeimage = pix->bytesperline * pix->height;
|
||||
}
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vpfe_initialize_device(struct vpfe_device *vpfe_dev)
|
||||
|
Loading…
Reference in New Issue
Block a user