V4L/DVB (10109): anysee: Fix usage of an unitialized function
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 22:02:24 +0000 (19:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:32 +0000 (09:40 -0200)
commit902571aaa91263bc27e923e94ddf161c106befee
tree611b85563e83999ade1aeaa18994ebcc940d6d7f
parentff924203c9e4a5bc218143bc37182851185f4e5f
V4L/DVB (10109): anysee: Fix usage of an unitialized function

drivers/media/dvb/dvb-usb/anysee.c: In function ‘anysee_master_xfer’:
drivers/media/dvb/dvb-usb/anysee.c:156: warning: ‘ret’ may be used uninitialized

By looking at the function, altrough very unlikely, this might
eventually be true if num  = 0. So, better to fix the warning by
initializing with ret = 0.

Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/anysee.c