summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 20:02:24 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 20:02:24 -0200
commit33cef62634c7f0a4b54be792d7d1c4e1b807f4d9 (patch)
tree1c0658a82ac47249ca31dc485c94ce65b0a53c4d /linux
parentb9dad285d153c7dd8b54848e7125c1e4987f1484 (diff)
downloadmediapointer-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')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/anysee.c2
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;