[media] fc2580: silence uninitialized variable warning
authorGianluca Gennari <gennarone@gmail.com>
Mon, 24 Sep 2012 11:51:01 +0000 (08:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 20:07:06 +0000 (17:07 -0300)
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>
drivers/media/tuners/fc2580.c

index 5206ccb588afcc35c46c4ae2a88338f8cc1f3365..dacf85578c4bf627022a8ebff1ddbf9bee5b9c10 100644 (file)
@@ -115,7 +115,7 @@ static int fc2580_set_params(struct dvb_frontend *fe)
 {
        struct fc2580_priv *priv = fe->tuner_priv;
        struct dtv_frontend_properties *c = &fe->dtv_property_cache;
-       int ret, i;
+       int ret = 0, i;
        unsigned int r_val, n_val, k_val, k_val_reg, f_ref;
        u8 tmp_val, r18_val;
        u64 f_vco;