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: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Mauro Carvalho Chehab 2021-06-10 08:20:16 +02:00
parent 1fec2ecc25
commit ba9139116b

View file

@ -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)