diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 15:26:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-28 05:38:54 -0400 |
commit | 59e54059ab5fdbd59114688d85b490e1d80660b2 (patch) | |
tree | 1577d90e4f23d0b8bf71dae9825f956f0511cf1c /drivers/media/tuners/tua9001.c | |
parent | 685a39bd1a05dba17cb7ba18ab74364ad51bc527 (diff) |
[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.c | 2 |
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) | |||
136 | { | 136 | { |
137 | struct tua9001_priv *priv = fe->tuner_priv; | 137 | struct tua9001_priv *priv = fe->tuner_priv; |
138 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | 138 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; |
139 | int ret, i; | 139 | int ret = 0, i; |
140 | u16 val; | 140 | u16 val; |
141 | u32 frequency; | 141 | u32 frequency; |
142 | struct reg_val data[2]; | 142 | struct reg_val data[2]; |