V4L/DVB (11227): ce6230: avoid using unitialized var
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Mar 2009 15:26:48 +0000 (12:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:42 +0000 (12:43 -0300)
drivers/media/dvb/dvb-usb/ce6230.c: In function ‘ce6230_i2c_xfer’:
drivers/media/dvb/dvb-usb/ce6230.c:107: warning: ‘ret’ may be used uninitialized in this function

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/ce6230.c

index 8a305904035290c9f86fb9f72c6bbd292835228a..5862820f109fad78f45dd307c3dfb1a94c921b82 100644 (file)
@@ -104,7 +104,7 @@ static int ce6230_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
        struct dvb_usb_device *d = i2c_get_adapdata(adap);
        int i = 0;
        struct req_t req;
-       int ret;
+       int ret = 0;
        memset(&req, 0, sizeof(&req));
 
        if (num > 2)