mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
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
7fabed7ae6
commit
f2c174e501
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue