mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-12 06:42:12 +00:00
[media] am437x-vpfe: fix an uninitialized variable bug
If we are doing V4L2_FIELD_NONE then "ret" is used uninitialized. Fixes: 417d2e507edc ('[media] media: platform: add VPFE capture driver support for AM437X') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
0fb5040011
commit
e4bccada44
@ -1047,7 +1047,7 @@ static int vpfe_get_ccdc_image_format(struct vpfe_device *vpfe,
|
||||
static int vpfe_config_ccdc_image_format(struct vpfe_device *vpfe)
|
||||
{
|
||||
enum ccdc_frmfmt frm_fmt = CCDC_FRMFMT_INTERLACED;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
vpfe_dbg(2, vpfe, "vpfe_config_ccdc_image_format\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user