]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] zoran: fix compiler warning
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 31 Dec 2010 15:30:56 +0000 (12:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 4 Jan 2011 18:47:49 +0000 (16:47 -0200)
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 <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/zoran/zoran_driver.c

index fe84f17c65c4605c8f6d90e9d0ab759506c9e2dc..7c3921de95894ed273f4ebbd6b10d3ebd183c871 100644 (file)
@@ -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;