Skip to content

Commit

Permalink
[media] fc2580: silence uninitialized variable warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gianluca Gennari authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent e221a1b commit 6e6dc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/tuners/fc2580.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e6dc88

Please sign in to comment.