diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-05 14:27:18 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-06-05 17:26:31 +0300 |
commit | 91aff0c5d90fe57b81e2295437affc34d205a2d2 (patch) | |
tree | 76cc0f192e802b9dfcc89deff2ae6cc7879f5bf1 /drivers/media/dvb-frontends/dib0090.c | |
parent | 5ac417efe66ddd7cd70a98f7f4e32a14ae40a651 (diff) | |
download | linux-91aff0c5d90fe57b81e2295437affc34d205a2d2.tar.xz |
[media] dib0090: Remove a dead code
As reported by smatch:
drivers/media/dvb-frontends/dib0090.c:1710 dib0090_dc_offset_calibration() warn: missing break? reassigning '*tune_state'
There's no need to change tune_state there, as the fall though code
will change it again to another state. So, simplify it by
removing the dead code.
While here, fix a typo:
Sart => Start
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/dib0090.c')
-rw-r--r-- | drivers/media/dvb-frontends/dib0090.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/dib0090.c b/drivers/media/dvb-frontends/dib0090.c index 68e2af2650d3..47cb72243b9d 100644 --- a/drivers/media/dvb-frontends/dib0090.c +++ b/drivers/media/dvb-frontends/dib0090.c @@ -1696,12 +1696,10 @@ static int dib0090_dc_offset_calibration(struct dib0090_state *state, enum front if (state->identity.p1g) state->dc = dc_p1g_table; - *tune_state = CT_TUNER_STEP_0; /* fall through */ - case CT_TUNER_STEP_0: - dprintk("Sart/continue DC calibration for %s path", (state->dc->i == 1) ? "I" : "Q"); + dprintk("Start/continue DC calibration for %s path", (state->dc->i == 1) ? "I" : "Q"); dib0090_write_reg(state, 0x01, state->dc->bb1); dib0090_write_reg(state, 0x07, state->bb7 | (state->dc->i << 7)); |