diff options
author | Gianluca Gennari <gennarone@gmail.com> | 2012-09-24 07:51:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-01 16:07:06 -0400 |
commit | 6e6dc88f3777bedaf7cec5987b251975a3d14d3d (patch) | |
tree | 72633a348afcae6450502da4f78d42c2771cfdd3 /drivers/media/tuners/fc2580.c | |
parent | e221a1b8960e7083029018e3cf2b4097e27d4891 (diff) |
[media] fc2580: silence uninitialized variable warning
fc2580.c: In function 'fc2580_set_params':
fc2580.c:118: warning: 'ret' may be used uninitialized in this function
Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/fc2580.c')
-rw-r--r-- | drivers/media/tuners/fc2580.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index 5206ccb588af..dacf85578c4b 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c | |||
@@ -115,7 +115,7 @@ static int fc2580_set_params(struct dvb_frontend *fe) | |||
115 | { | 115 | { |
116 | struct fc2580_priv *priv = fe->tuner_priv; | 116 | struct fc2580_priv *priv = fe->tuner_priv; |
117 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | 117 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; |
118 | int ret, i; | 118 | int ret = 0, i; |
119 | unsigned int r_val, n_val, k_val, k_val_reg, f_ref; | 119 | unsigned int r_val, n_val, k_val, k_val_reg, f_ref; |
120 | u8 tmp_val, r18_val; | 120 | u8 tmp_val, r18_val; |
121 | u64 f_vco; | 121 | u64 f_vco; |