summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/tua9001.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 23:26:56 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-28 13:38:54 +0400
commit59e54059ab5fdbd59114688d85b490e1d80660b2 (patch)
tree1577d90e4f23d0b8bf71dae9825f956f0511cf1c /drivers/media/tuners/tua9001.c
parent685a39bd1a05dba17cb7ba18ab74364ad51bc527 (diff)
downloadlinux-59e54059ab5fdbd59114688d85b490e1d80660b2.tar.xz
[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 <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/tua9001.c')
-rw-r--r--drivers/media/tuners/tua9001.c2
1 files changed, 1 insertions, 1 deletions
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];