mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 02:27:51 -04: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:
committed by
Mauro Carvalho Chehab
parent
7fabed7ae6
commit
f2c174e501
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user