From: Hans Verkuil Date: Fri, 31 Dec 2010 15:30:56 +0000 (-0300) Subject: [media] zoran: fix compiler warning X-Git-Tag: upstream/snapshot3+hdmi~12135^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a5e5af0d2111fdc39c6f2275ed2a9e2e6dd69e2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] zoran: fix compiler warning drivers/media/video/zoran/zoran_driver.c: In function 'zoran_dqbuf': drivers/media/video/zoran/zoran_driver.c:2197:21: warning: 'bs.frame' may be used uninitialized in this function Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index fe84f17..7c3921d 100644 --- a/drivers/media/video/zoran/zoran_driver.c +++ b/drivers/media/video/zoran/zoran_driver.c @@ -2216,6 +2216,7 @@ static int zoran_dqbuf(struct file *file, void *__fh, struct v4l2_buffer *buf) res = -EAGAIN; goto dqbuf_unlock_and_return; } + bs.frame = 0; /* suppress compiler warning */ res = jpg_sync(fh, &bs); if (res) goto dqbuf_unlock_and_return;