V4L/DVB: videobuf-dma-sg: Avoid using a wrong size
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 25 Apr 2010 14:23:52 +0000 (11:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:58 +0000 (12:57 -0300)
commit474675ad8006834be996c046b47436d8ca7a5105
tree556cfac9c0f4e5f345e847952802f5348cb1d3f0
parente4dac289f01da80d7966a123bc1ea97be199ba4f
V4L/DVB: videobuf-dma-sg: Avoid using a wrong size

drivers/media/video/videobuf-dma-sg.c: In function ‘__videobuf_mmap_mapper’:
drivers/media/video/videobuf-dma-sg.c:557: warning: ‘size’ may be used uninitialized in this function

The condition where size is floating should never happen, due to the paranoia check,
but a future change at the logic might break it. So, let's just set size to zero and
use it for the paranoia check.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf-dma-sg.c