Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
media: staging: media: imx: fix Unneeded variable: "ret". Return "0"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hariprasad Kelam authored and mchehab committed May 28, 2019
1 parent fe97d64 commit 7541706
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/media/imx/imx-media-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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 = {
Expand Down

0 comments on commit 7541706

Please sign in to comment.