summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-11-03 14:23:37 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2019-11-08 09:28:22 +0300
commitb5f72a17b1b2f5363f61075d501367ac7461581e (patch)
treefcfa58fec95aa3ccc5e9850c0838d0a0f7dec6cd /drivers/media
parent2c3e42bf78c7ad646856089eba9839f3942a5165 (diff)
downloadlinux-b5f72a17b1b2f5363f61075d501367ac7461581e.tar.xz
media: ov6650: fix smatch warning
Initialize ret to 0 to fix this smatch error: drivers/media/i2c/ov6650.c:853 ov6650_video_probe() error: uninitialized symbol 'ret'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/ov6650.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov6650.c b/drivers/media/i2c/ov6650.c
index 3c8f50f8619f..91906b94f978 100644
--- a/drivers/media/i2c/ov6650.c
+++ b/drivers/media/i2c/ov6650.c
@@ -819,7 +819,7 @@ static int ov6650_video_probe(struct v4l2_subdev *sd)
const struct ov6650_xclk *xclk = NULL;
unsigned long rate;
u8 pidh, pidl, midh, midl;
- int i, ret;
+ int i, ret = 0;
priv->clk = v4l2_clk_get(&client->dev, NULL);
if (IS_ERR(priv->clk)) {