diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-04-24 06:36:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-25 08:55:16 -0400 |
commit | ecb52ab8213173e81717ac6fb3ba956f048aeda9 (patch) | |
tree | 6a828666a0d1e4ed8fc8d1f1e2ed1151090e71b8 /drivers/media/usb | |
parent | 7f8414594e4755234fd0ca415630cfe2dfab42ce (diff) |
[media] anysee: Initialize ret = 0 in anysee_frontend_attach()
drivers/media/usb/dvb-usb-v2/anysee.c: In function ‘anysee_frontend_attach’:
drivers/media/usb/dvb-usb-v2/anysee.c:641: warning: ‘ret’ may be used uninitialized in this function
And gcc is right (see the ANYSEE_HW_507T case), so initialize ret to zero
to fix this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/anysee.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/anysee.c b/drivers/media/usb/dvb-usb-v2/anysee.c index 2e762742a4c7..d6daad10287c 100644 --- a/drivers/media/usb/dvb-usb-v2/anysee.c +++ b/drivers/media/usb/dvb-usb-v2/anysee.c | |||
@@ -635,7 +635,7 @@ static int anysee_frontend_attach(struct dvb_usb_adapter *adap) | |||
635 | { | 635 | { |
636 | struct anysee_state *state = adap_to_priv(adap); | 636 | struct anysee_state *state = adap_to_priv(adap); |
637 | struct dvb_usb_device *d = adap_to_d(adap); | 637 | struct dvb_usb_device *d = adap_to_d(adap); |
638 | int ret; | 638 | int ret = 0; |
639 | u8 tmp; | 639 | u8 tmp; |
640 | struct i2c_msg msg[2] = { | 640 | struct i2c_msg msg[2] = { |
641 | { | 641 | { |