aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/frontends/cx22702.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/cx22702.c b/drivers/media/dvb/frontends/cx22702.c
index c799fdf26272..c3681d19b43e 100644
--- a/drivers/media/dvb/frontends/cx22702.c
+++ b/drivers/media/dvb/frontends/cx22702.c
@@ -508,7 +508,7 @@ static int cx22702_read_signal_strength(struct dvb_frontend *fe,
508{ 508{
509 struct cx22702_state *state = fe->demodulator_priv; 509 struct cx22702_state *state = fe->demodulator_priv;
510 510
511 u16 rs_ber = 0; 511 u16 rs_ber;
512 rs_ber = cx22702_readreg(state, 0x23); 512 rs_ber = cx22702_readreg(state, 0x23);
513 *signal_strength = (rs_ber << 8) | rs_ber; 513 *signal_strength = (rs_ber << 8) | rs_ber;
514 514
@@ -519,7 +519,7 @@ static int cx22702_read_snr(struct dvb_frontend *fe, u16 *snr)
519{ 519{
520 struct cx22702_state *state = fe->demodulator_priv; 520 struct cx22702_state *state = fe->demodulator_priv;
521 521
522 u16 rs_ber = 0; 522 u16 rs_ber;
523 if (cx22702_readreg(state, 0xE4) & 0x02) { 523 if (cx22702_readreg(state, 0xE4) & 0x02) {
524 /* Realtime statistics */ 524 /* Realtime statistics */
525 rs_ber = (cx22702_readreg(state, 0xDE) & 0x7F) << 7 525 rs_ber = (cx22702_readreg(state, 0xDE) & 0x7F) << 7
@@ -590,7 +590,6 @@ struct dvb_frontend *cx22702_attach(const struct cx22702_config *config,
590 /* setup the state */ 590 /* setup the state */
591 state->config = config; 591 state->config = config;
592 state->i2c = i2c; 592 state->i2c = i2c;
593 state->prevUCBlocks = 0;
594 593
595 /* check if the demod is there */ 594 /* check if the demod is there */
596 if (cx22702_readreg(state, 0x1f) != 0x3) 595 if (cx22702_readreg(state, 0x1f) != 0x3)