diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 22:10:25 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-04 00:59:28 +0400 |
commit | 7c9950768fb4a0a3fbd3a866ae94734c5078fd0c (patch) | |
tree | 6eecd5b18bd44cbf34c0f8c94a75dd9d98a8c70e /drivers/media/dvb-frontends/stv0367.c | |
parent | 2f1e48d670dc755d40f7bd926d02713d90b378ea (diff) | |
download | linux-7c9950768fb4a0a3fbd3a866ae94734c5078fd0c.tar.xz |
[media] stv0367: 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>
Diffstat (limited to 'drivers/media/dvb-frontends/stv0367.c')
-rw-r--r-- | drivers/media/dvb-frontends/stv0367.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/stv0367.c b/drivers/media/dvb-frontends/stv0367.c index 764577218974..59f622ae80e8 100644 --- a/drivers/media/dvb-frontends/stv0367.c +++ b/drivers/media/dvb-frontends/stv0367.c @@ -1935,8 +1935,6 @@ static int stv0367ter_get_frontend(struct dvb_frontend *fe) struct dtv_frontend_properties *p = &fe->dtv_property_cache; struct stv0367_state *state = fe->demodulator_priv; struct stv0367ter_state *ter_state = state->ter_state; - - int error = 0; enum stv0367_ter_mode mode; int constell = 0,/* snr = 0,*/ Data = 0; @@ -2020,7 +2018,7 @@ static int stv0367ter_get_frontend(struct dvb_frontend *fe) p->guard_interval = stv0367_readbits(state, F367TER_SYR_GUARD); - return error; + return 0; } static int stv0367ter_read_snr(struct dvb_frontend *fe, u16 *snr) |