[media] mt2060: just return 0 instead of using a var

Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Mauro Carvalho Chehab 2014-09-03 16:06:55 -03:00
Родитель f2747cf6f0
Коммит 4539fc5c68
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -157,7 +157,6 @@ static int mt2060_set_params(struct dvb_frontend *fe)
{ {
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct mt2060_priv *priv; struct mt2060_priv *priv;
int ret=0;
int i=0; int i=0;
u32 freq; u32 freq;
u8 lnaband; u8 lnaband;
@ -240,7 +239,7 @@ static int mt2060_set_params(struct dvb_frontend *fe)
if (fe->ops.i2c_gate_ctrl) if (fe->ops.i2c_gate_ctrl)
fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */
return ret; return 0;
} }
static void mt2060_calibrate(struct mt2060_priv *priv) static void mt2060_calibrate(struct mt2060_priv *priv)