mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 05:36:43 +07:00
[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>
This commit is contained in:
parent
0c8fc77e48
commit
1a5e5af0d2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user