]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
media: staging: media: imx: fix Unneeded variable: "ret". Return "0"
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 18 May 2019 17:38:52 +0000 (13:38 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 17:12:22 +0000 (13:12 -0400)
fix below warning reported by coccichec

drivers/staging/media/imx/imx-media-capture.c:617:5-8: Unneeded
variable: "ret". Return "0" on line 630

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-capture.c

index 9430c835c4349ddfe68ec5937ea250d6e2d6f121..b6788576e43b6c26d1f898ed43ff6e9e72efc24d 100644 (file)
@@ -614,7 +614,6 @@ static int capture_release(struct file *file)
        struct capture_priv *priv = video_drvdata(file);
        struct video_device *vfd = priv->vdev.vfd;
        struct vb2_queue *vq = &priv->q;
-       int ret = 0;
 
        mutex_lock(&priv->mutex);
 
@@ -627,7 +626,7 @@ static int capture_release(struct file *file)
 
        v4l2_fh_release(file);
        mutex_unlock(&priv->mutex);
-       return ret;
+       return 0;
 }
 
 static const struct v4l2_file_operations capture_fops = {