Commit ba913911 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: sun6i-csi: add a missing return code

As pointed by smatch, there's a missing return code:

	drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c:485 sun6i_video_open() warn: missing error code 'ret'
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 1fec2ecc
......@@ -481,8 +481,10 @@ static int sun6i_video_open(struct file *file)
goto fh_release;
/* check if already powered */
if (!v4l2_fh_is_singular_file(file))
if (!v4l2_fh_is_singular_file(file)) {
ret = -EBUSY;
goto unlock;
}
ret = sun6i_csi_set_power(video->csi, true);
if (ret < 0)
......
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