diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 20:02:24 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 20:02:24 -0200 |
commit | 33cef62634c7f0a4b54be792d7d1c4e1b807f4d9 (patch) | |
tree | 1c0658a82ac47249ca31dc485c94ce65b0a53c4d /linux/drivers/media | |
parent | b9dad285d153c7dd8b54848e7125c1e4987f1484 (diff) | |
download | mediapointer-dvb-s2-33cef62634c7f0a4b54be792d7d1c4e1b807f4d9.tar.gz mediapointer-dvb-s2-33cef62634c7f0a4b54be792d7d1c4e1b807f4d9.tar.bz2 |
anysee: Fix usage of an unitialized function
From: Mauro Carvalho Chehab <mchehab@redhat.com>
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.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
CC: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/anysee.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/anysee.c b/linux/drivers/media/dvb/dvb-usb/anysee.c index 90a04266a..1dbf132a7 100644 --- a/linux/drivers/media/dvb/dvb-usb/anysee.c +++ b/linux/drivers/media/dvb/dvb-usb/anysee.c @@ -153,7 +153,7 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, int num) { struct dvb_usb_device *d = i2c_get_adapdata(adap); - int ret, inc, i = 0; + int ret = 0, inc, i = 0; if (mutex_lock_interruptible(&d->i2c_mutex) < 0) return -EAGAIN; |