mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 05:46:50 +07:00
media: rcar-vin: Fix incorrect return statement in rvin_try_format()
While refactoring code the return statement became corrupted, fix it by
returning the correct return code.
Reported-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fixes: 897e371389
("media: rcar-vin: simplify how formats are set and reset"
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
f71193af43
commit
a0862a4036
@ -208,6 +208,7 @@ static int rvin_try_format(struct rvin_dev *vin, u32 which,
|
||||
ret = v4l2_subdev_call(sd, pad, set_fmt, pad_cfg, &format);
|
||||
if (ret < 0 && ret != -ENOIOCTLCMD)
|
||||
goto done;
|
||||
ret = 0;
|
||||
|
||||
v4l2_fill_pix_format(pix, &format.format);
|
||||
|
||||
@ -242,7 +243,7 @@ static int rvin_try_format(struct rvin_dev *vin, u32 which,
|
||||
done:
|
||||
v4l2_subdev_free_pad_config(pad_cfg);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rvin_querycap(struct file *file, void *priv,
|
||||
|
Loading…
Reference in New Issue
Block a user