[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;
|
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)
|
||||||
|
|
Loading…
Reference in New Issue