Hi Jasmin, On Sat, Jul 28, 2018 at 03:54:49PM +0200, Jasmin J. wrote: > From: Jasmin Jessich <jasmin@xxxxxx> > > This fixes the "'idx' may be used uninitialized in this function" > warning. > > Cc: Jacopo Mondi <jacopo+renesas@xxxxxxxxxx> > Signed-off-by: Jasmin Jessich <jasmin@xxxxxx> Thanks for the patch Acked-by: Jacopo Mondi <jacopo@xxxxxxxxxx> 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:
signature.asc
Description: PGP signature