summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-11-03 12:23:37 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2019-11-08 07:28:22 +0100
commitb5f72a17b1b2f5363f61075d501367ac7461581e (patch)
treefcfa58fec95aa3ccc5e9850c0838d0a0f7dec6cd /drivers/media
parentmedia: ti-vpe: fix smatch error (diff)
downloadlinux-b5f72a17b1b2f5363f61075d501367ac7461581e.tar.xz
linux-b5f72a17b1b2f5363f61075d501367ac7461581e.zip
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)) {