From: Mauro Carvalho Chehab Date: Sat, 27 Oct 2012 19:26:56 +0000 (-0300) Subject: [media] tua9001: fix a warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=59e54059ab5fdbd59114688d85b490e1d80660b2;p=openwrt%2Fstaging%2Fblogic.git [media] tua9001: fix a warning drivers/media/tuners/tua9001.c:211:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] Cc: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/tua9001.c b/drivers/media/tuners/tua9001.c index 389668474070..83a6240f64d3 100644 --- a/drivers/media/tuners/tua9001.c +++ b/drivers/media/tuners/tua9001.c @@ -136,7 +136,7 @@ static int tua9001_set_params(struct dvb_frontend *fe) { struct tua9001_priv *priv = fe->tuner_priv; struct dtv_frontend_properties *c = &fe->dtv_property_cache; - int ret, i; + int ret = 0, i; u16 val; u32 frequency; struct reg_val data[2];