aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 15:06:55 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 16:59:56 -0400
commit4539fc5c68d78f2df815f426f957528011b50a08 (patch)
treea780a50bc9c91b553de7412a3e855ef27d314ab8
parentf2747cf6f0a1110d132280d49ce3dd6886dacd85 (diff)
[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>
-rw-r--r--drivers/media/tuners/mt2060.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/tuners/mt2060.c b/drivers/media/tuners/mt2060.c
index 13381de58a84..b87b2549d58d 100644
--- a/drivers/media/tuners/mt2060.c
+++ b/drivers/media/tuners/mt2060.c
@@ -157,7 +157,6 @@ static int mt2060_set_params(struct dvb_frontend *fe)
157{ 157{
158 struct dtv_frontend_properties *c = &fe->dtv_property_cache; 158 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
159 struct mt2060_priv *priv; 159 struct mt2060_priv *priv;
160 int ret=0;
161 int i=0; 160 int i=0;
162 u32 freq; 161 u32 freq;
163 u8 lnaband; 162 u8 lnaband;
@@ -240,7 +239,7 @@ static int mt2060_set_params(struct dvb_frontend *fe)
240 if (fe->ops.i2c_gate_ctrl) 239 if (fe->ops.i2c_gate_ctrl)
241 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ 240 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */
242 241
243 return ret; 242 return 0;
244} 243}
245 244
246static void mt2060_calibrate(struct mt2060_priv *priv) 245static void mt2060_calibrate(struct mt2060_priv *priv)