Skip to content

Commit

Permalink
media: sun6i-csi: capture: Remove useless ret initialization
Browse files Browse the repository at this point in the history
There is no particular need to assign ret when declaring it as
it will be assigned before there is any chance to return it.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
  • Loading branch information
Paul Kocialkowski authored and Mauro Carvalho Chehab committed Dec 14, 2022
1 parent 7fabed7 commit f2c174e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ static int sun6i_csi_capture_open(struct file *file)
{
struct sun6i_csi_device *csi_dev = video_drvdata(file);
struct sun6i_csi_capture *capture = &csi_dev->capture;
int ret = 0;
int ret;

if (mutex_lock_interruptible(&capture->lock))
return -ERESTARTSYS;
Expand Down

0 comments on commit f2c174e

Please sign in to comment.