diff options
author | 2022-12-08 15:19:58 +0100 | |
---|---|---|
committer | 2022-12-12 11:36:00 +0100 | |
commit | 6ceef05440ac7c0dfa2c7aef66050ad1f0e64ecb (patch) | |
tree | 79e0ee6437f68ccf0c1bfdcc9ac28df935d6aaf1 /drivers/media/platform/sunxi | |
parent | media: sun6i-csi: bridge: Error out on invalid port to fix warning (diff) | |
download | linux-6ceef05440ac7c0dfa2c7aef66050ad1f0e64ecb.tar.gz linux-6ceef05440ac7c0dfa2c7aef66050ad1f0e64ecb.tar.bz2 linux-6ceef05440ac7c0dfa2c7aef66050ad1f0e64ecb.zip |
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>
Diffstat (limited to 'drivers/media/platform/sunxi')
-rw-r--r-- | drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c index 6d34f5c0768f..cf6aadbc130b 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_capture.c @@ -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; |