linux/drivers/media
Mauro Carvalho Chehab 95f18be2e4 [media] gspca: Fix a warning for using len before filling it
The check for status errors is now before the check for len. That's
ok. However, the error printk's for the status error prints the URB
length. This generates this error:

drivers/media/video/gspca/gspca.c: In function ‘fill_frame’:
drivers/media/video/gspca/gspca.c:305:9: warning: ‘len’ may be used uninitialized in this function

The fix is as simple as moving the len init to happen before the checks.

Cc: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-12-29 08:17:14 -02:00
..
common [media] V4L: remove V4L1 compatibility mode 2010-12-29 08:17:07 -02:00
dvb [media] dib7000m/dib7000p: Add support for TRANSMISSION_MODE_4K 2010-12-29 08:17:13 -02:00
radio [media] radio-wl1273: Fix two warnings 2010-12-29 08:17:13 -02:00
rc [media] rc: ir-lirc-codec: fix potential integer overflow 2010-12-29 08:17:02 -02:00
video [media] gspca: Fix a warning for using len before filling it 2010-12-29 08:17:14 -02:00
Kconfig [media] Remove VIDEO_V4L1 Kconfig option 2010-12-29 08:17:11 -02:00
Makefile [media] rename drivers/media/IR to drives/media/rc 2010-12-29 08:16:36 -02:00