Commit ef0ed05d authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

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

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

Fixes: 64b5a49d ("[media] media: imx: Add Capture Device Interface")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 218fc9f2
...@@ -778,7 +778,7 @@ int imx_media_capture_device_register(struct imx_media_video_dev *vdev) ...@@ -778,7 +778,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment