Skip to content

Commit

Permalink
[media] tua9001: fix a warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 685a39b commit 59e5405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/tuners/tua9001.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 59e5405

Please sign in to comment.