[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>
This commit is contained in:
parent
685a39bd1a
commit
59e54059ab
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue