Skip to content

Commit f2c174e

Browse files
paulkocialkowskimchehab
authored andcommitted
media: sun6i-csi: capture: Remove useless ret initialization
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 <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 7fabed7 commit f2c174e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ static int sun6i_csi_capture_open(struct file *file)
832832
{
833833
struct sun6i_csi_device *csi_dev = video_drvdata(file);
834834
struct sun6i_csi_capture *capture = &csi_dev->capture;
835-
int ret = 0;
835+
int ret;
836836

837837
if (mutex_lock_interruptible(&capture->lock))
838838
return -ERESTARTSYS;

0 commit comments

Comments
 (0)