diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-31 10:30:56 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-04 13:47:49 -0500 |
commit | 1a5e5af0d2111fdc39c6f2275ed2a9e2e6dd69e2 (patch) | |
tree | 074a44ccd8333d72dd57582fd0e46152725881d5 /drivers | |
parent | 0c8fc77e481a3bfc243336085a3fe1fc71f9c1fb (diff) |
[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 <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/zoran/zoran_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/zoran/zoran_driver.c b/drivers/media/video/zoran/zoran_driver.c index fe84f17c65c4..7c3921de9589 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) | |||
2216 | res = -EAGAIN; | 2216 | res = -EAGAIN; |
2217 | goto dqbuf_unlock_and_return; | 2217 | goto dqbuf_unlock_and_return; |
2218 | } | 2218 | } |
2219 | bs.frame = 0; /* suppress compiler warning */ | ||
2219 | res = jpg_sync(fh, &bs); | 2220 | res = jpg_sync(fh, &bs); |
2220 | if (res) | 2221 | if (res) |
2221 | goto dqbuf_unlock_and_return; | 2222 | goto dqbuf_unlock_and_return; |