From: Mauro Carvalho Chehab Date: Thu, 26 Mar 2009 15:26:48 +0000 (-0300) Subject: V4L/DVB (11227): ce6230: avoid using unitialized var X-Git-Tag: 2.1b_release~13690^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ddacee6ebbbdd20af96663f96f5b4de6bff90cc;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git V4L/DVB (11227): ce6230: avoid using unitialized var 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 --- diff --git a/drivers/media/dvb/dvb-usb/ce6230.c b/drivers/media/dvb/dvb-usb/ce6230.c index 8a30590..5862820 100644 --- a/drivers/media/dvb/dvb-usb/ce6230.c +++ b/drivers/media/dvb/dvb-usb/ce6230.c @@ -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)