This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: ov6650: fix smatch warning
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Sun Nov 3 12:23:37 2019 +0100

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-ci...@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@kernel.org>

 drivers/media/i2c/ov6650.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

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)) {

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to