* [PATCH] media: i2c: fix warning in Aptina MT9V111
@ 2018-07-28 13:54 Jasmin J.
2018-07-30 7:52 ` jacopo mondi
0 siblings, 1 reply; 2+ messages in thread
From: Jasmin J. @ 2018-07-28 13:54 UTC (permalink / raw)
To: linux-media; +Cc: mchehab+samsung, jasmin, Jacopo Mondi
From: Jasmin Jessich <jasmin@anw.at>
This fixes the "'idx' may be used uninitialized in this function"
warning.
Cc: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Jasmin Jessich <jasmin@anw.at>
---
drivers/media/i2c/mt9v111.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
index da8f6ab..58d5f22 100644
--- a/drivers/media/i2c/mt9v111.c
+++ b/drivers/media/i2c/mt9v111.c
@@ -884,7 +884,7 @@ static int mt9v111_set_format(struct v4l2_subdev *subdev,
struct v4l2_mbus_framefmt new_fmt;
struct v4l2_mbus_framefmt *__fmt;
unsigned int best_fit = ~0L;
- unsigned int idx;
+ unsigned int idx = 0;
unsigned int i;
mutex_lock(&mt9v111->stream_mutex);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] media: i2c: fix warning in Aptina MT9V111
2018-07-28 13:54 [PATCH] media: i2c: fix warning in Aptina MT9V111 Jasmin J.
@ 2018-07-30 7:52 ` jacopo mondi
0 siblings, 0 replies; 2+ messages in thread
From: jacopo mondi @ 2018-07-30 7:52 UTC (permalink / raw)
To: Jasmin J.; +Cc: linux-media, mchehab+samsung, Jacopo Mondi
[-- Attachment #1: Type: text/plain, Size: 956 bytes --]
Hi Jasmin,
On Sat, Jul 28, 2018 at 03:54:49PM +0200, Jasmin J. wrote:
> From: Jasmin Jessich <jasmin@anw.at>
>
> This fixes the "'idx' may be used uninitialized in this function"
> warning.
>
> Cc: Jacopo Mondi <jacopo+renesas@jmondi.org>
> Signed-off-by: Jasmin Jessich <jasmin@anw.at>
Thanks for the patch
Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Thanks
j
> ---
> drivers/media/i2c/mt9v111.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c
> index da8f6ab..58d5f22 100644
> --- a/drivers/media/i2c/mt9v111.c
> +++ b/drivers/media/i2c/mt9v111.c
> @@ -884,7 +884,7 @@ static int mt9v111_set_format(struct v4l2_subdev *subdev,
> struct v4l2_mbus_framefmt new_fmt;
> struct v4l2_mbus_framefmt *__fmt;
> unsigned int best_fit = ~0L;
> - unsigned int idx;
> + unsigned int idx = 0;
> unsigned int i;
>
> mutex_lock(&mt9v111->stream_mutex);
> --
> 2.7.4
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-30 9:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-28 13:54 [PATCH] media: i2c: fix warning in Aptina MT9V111 Jasmin J.
2018-07-30 7:52 ` jacopo mondi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox