mt9v111: Fix compiler warning by initialising a variable
Sakari Ailus
maintainerPATCH 1/1 mt9v111: Fix compiler warning by initialising a variable
While this isn't a bug, initialise the variable to quash the warning.
Reported-by Stephen Rothwell <[email protected]>
Signed-off-by Sakari Ailus <[email protected]>
--- drivers/media/i2c/mt9v111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/mt9v111.c +1 -1
@@ -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);
Signature · 1 line
2.11.0
jacopo mondi
maintainerHi Sakari,
Quoted 13 lines · Sakari Ailus
While this isn't a bug, initialise the variable to quash the warning.
Reported-by Stephen Rothwell <[email protected]>Signed-off-by Sakari Ailus <[email protected]>--- drivers/media/i2c/mt9v111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/mt9v111.c +0
-0
drivers/media/i2c/mt9v111.c static int mt9v111_set_format(struct v4l2_subdev *subdev, · line 889
Quoted 7 lines
drivers/media/i2c/mt9v111.c +1
-1@@ -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;
Thanks for this, but there is already a patch sent on Friday by Jasmin addressing the warning
Quoted 4 lines
drivers/media/i2c/mt9v111.c +0
-1mutex_lock (&mt9v111->stream_mutex); --2.11.0
Sakari Ailus
maintainerQuoted 27 lines · jacopo mondi
Hi Sakari,
Quoted 13 lines · Sakari Ailus
While this isn't a bug, initialise the variable to quash the warning.
Reported-by Stephen Rothwell <[email protected]>Signed-off-by Sakari Ailus <[email protected]>--- drivers/media/i2c/mt9v111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/mt9v111.c +0
-0drivers/media/i2c/mt9v111.c static int mt9v111_set_format(struct v4l2_subdev *subdev, · line 889
Quoted 7 lines
drivers/media/i2c/mt9v111.c +1
-1@@ -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;Thanks for this, but there is already a patch sent on Friday by Jasmin addressing the warning
Quoted 1 line
Ah, ok. I'll mark this as rejected then.
Signature · 2 lines
Sakari Ailus [email protected]