media: staging/imx: Missing assignment in imx_media_capture_device_register()

[ Upstream commit ef0ed05dcef8a74178a8b480cce23a377b1de2b8 ]

There was supposed to be a "ret = " assignment here, otherwise the
error handling on the next line won't work.

Fixes: 64b5a49df4 ("[media] media: imx: Add Capture Device Interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Dan Carpenter 2020-02-11 08:35:46 +01:00 committed by Greg Kroah-Hartman
parent bb19824024
commit eec0eacf6c

View file

@ -678,7 +678,7 @@ int imx_media_capture_device_register(struct imx_media_video_dev *vdev)
/* setup default format */ /* setup default format */
fmt_src.pad = priv->src_sd_pad; fmt_src.pad = priv->src_sd_pad;
fmt_src.which = V4L2_SUBDEV_FORMAT_ACTIVE; fmt_src.which = V4L2_SUBDEV_FORMAT_ACTIVE;
v4l2_subdev_call(sd, pad, get_fmt, NULL, &fmt_src); ret = v4l2_subdev_call(sd, pad, get_fmt, NULL, &fmt_src);
if (ret) { if (ret) {
v4l2_err(sd, "failed to get src_sd format\n"); v4l2_err(sd, "failed to get src_sd format\n");
goto unreg; goto unreg;