Skip to content

Commit 7541706

Browse files
Hariprasad Kelammchehab
authored andcommitted
media: staging: media: imx: fix Unneeded variable: "ret". Return "0"
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 <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent fe97d64 commit 7541706

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/staging/media/imx/imx-media-capture.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ static int capture_release(struct file *file)
614614
struct capture_priv *priv = video_drvdata(file);
615615
struct video_device *vfd = priv->vdev.vfd;
616616
struct vb2_queue *vq = &priv->q;
617-
int ret = 0;
618617

619618
mutex_lock(&priv->mutex);
620619

@@ -627,7 +626,7 @@ static int capture_release(struct file *file)
627626

628627
v4l2_fh_release(file);
629628
mutex_unlock(&priv->mutex);
630-
return ret;
629+
return 0;
631630
}
632631

633632
static const struct v4l2_file_operations capture_fops = {

0 commit comments

Comments
 (0)