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 <paul.kocialkowski@bootlin.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
f523c65532
commit
6ceef05440
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue