diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-04-20 07:04:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 13:50:10 -0400 |
commit | fdf07b027b2d3eee9a561898b9c427cc3e457af4 (patch) | |
tree | a5cbcb9c74e57da422b86576821c4359fcab49af /drivers/media | |
parent | 8173090acb33500496b69ca20c7f33c3bf665958 (diff) |
[media] v4l/dvb: fix compiler warnings
media_build/v4l/stb6100.c: In function 'stb6100_read_reg':
media_build/v4l/stb6100.c:161:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx24110.c: In function 'cx24110_read_ucblocks':
media_build/v4l/cx24110.c:515:6: warning: variable 'lastbyer' set but not used [-Wunused-but-set-variable]
media_build/v4l/dib9000.c: In function 'dib9000_mbx_process':
media_build/v4l/dib9000.c:711:6: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
media_build/v4l/zl10353.c: In function 'zl10353_init':
media_build/v4l/zl10353.c:562:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
media_build/v4l/stv0297.c: In function 'stv0297_set_frontend':
media_build/v4l/stv0297.c:417:16: warning: variable 'starttime' set but not used [-Wunused-but-set-variable]
media_build/v4l/lgs8gxx.c: In function 'lgs8gxx_set_mode_manual':
media_build/v4l/lgs8gxx.c:265:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
media_build/v4l/af9013.c: In function 'af9013_statistics_work':
media_build/v4l/af9013.c:517:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
media_build/v4l/stv090x.c: In function 'stv090x_optimize_track':
media_build/v4l/stv090x.c:2845:23: warning: variable 'rolloff' set but not used [-Wunused-but-set-variable]
media_build/v4l/stv090x.c: In function 'stv090x_algo':
media_build/v4l/stv090x.c:3177:28: warning: variable 'no_signal' set but not used [-Wunused-but-set-variable]
media_build/v4l/it913x-fe.c: In function 'it913x_fe_read_ber':
media_build/v4l/it913x-fe.c:636:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
media_build/v4l/it913x-fe.c: In function 'it913x_fe_get_frontend':
media_build/v4l/it913x-fe.c:661:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
media_build/v4l/it913x-fe.c: In function 'it913x_fe_set_frontend':
media_build/v4l/it913x-fe.c:694:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
media_build/v4l/m88rs2000.c: In function 'm88rs2000_set_fec':
media_build/v4l/m88rs2000.c:657:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
media_build/v4l/dst_ca.c: In function 'ca_send_message':
media_build/v4l/dst_ca.c:480:15: warning: variable 'ca_message_header_len' set but not used [-Wunused-but-set-variable]
media_build/v4l/smssdio.c: In function 'smssdio_interrupt':
media_build/v4l/smssdio.c:117:11: warning: variable 'isr' set but not used [-Wunused-but-set-variable]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/bt8xx/dst_ca.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/af9013.c | 13 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/cx24110.c | 7 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dib9000.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/it913x-fe.c | 26 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/lgs8gxx.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/m88rs2000.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb6100.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stv0297.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stv090x.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/zl10353.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smssdio.c | 4 |
12 files changed, 27 insertions, 44 deletions
diff --git a/drivers/media/dvb/bt8xx/dst_ca.c b/drivers/media/dvb/bt8xx/dst_ca.c index 48e48e8af55a..66f52f116b60 100644 --- a/drivers/media/dvb/bt8xx/dst_ca.c +++ b/drivers/media/dvb/bt8xx/dst_ca.c | |||
@@ -477,7 +477,6 @@ static int dst_check_ca_pmt(struct dst_state *state, struct ca_msg *p_ca_message | |||
477 | static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg) | 477 | static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg) |
478 | { | 478 | { |
479 | int i = 0; | 479 | int i = 0; |
480 | unsigned int ca_message_header_len; | ||
481 | 480 | ||
482 | u32 command = 0; | 481 | u32 command = 0; |
483 | struct ca_msg *hw_buffer; | 482 | struct ca_msg *hw_buffer; |
@@ -496,7 +495,6 @@ static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, | |||
496 | 495 | ||
497 | 496 | ||
498 | if (p_ca_message->msg) { | 497 | if (p_ca_message->msg) { |
499 | ca_message_header_len = p_ca_message->length; /* Restore it back when you are done */ | ||
500 | /* EN50221 tag */ | 498 | /* EN50221 tag */ |
501 | command = 0; | 499 | command = 0; |
502 | 500 | ||
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c index 6bcbcf543b38..5bc570d77846 100644 --- a/drivers/media/dvb/frontends/af9013.c +++ b/drivers/media/dvb/frontends/af9013.c | |||
@@ -514,7 +514,6 @@ err: | |||
514 | 514 | ||
515 | static void af9013_statistics_work(struct work_struct *work) | 515 | static void af9013_statistics_work(struct work_struct *work) |
516 | { | 516 | { |
517 | int ret; | ||
518 | struct af9013_state *state = container_of(work, | 517 | struct af9013_state *state = container_of(work, |
519 | struct af9013_state, statistics_work.work); | 518 | struct af9013_state, statistics_work.work); |
520 | unsigned int next_msec; | 519 | unsigned int next_msec; |
@@ -530,27 +529,27 @@ static void af9013_statistics_work(struct work_struct *work) | |||
530 | default: | 529 | default: |
531 | state->statistics_step = 0; | 530 | state->statistics_step = 0; |
532 | case 0: | 531 | case 0: |
533 | ret = af9013_statistics_signal_strength(&state->fe); | 532 | af9013_statistics_signal_strength(&state->fe); |
534 | state->statistics_step++; | 533 | state->statistics_step++; |
535 | next_msec = 300; | 534 | next_msec = 300; |
536 | break; | 535 | break; |
537 | case 1: | 536 | case 1: |
538 | ret = af9013_statistics_snr_start(&state->fe); | 537 | af9013_statistics_snr_start(&state->fe); |
539 | state->statistics_step++; | 538 | state->statistics_step++; |
540 | next_msec = 200; | 539 | next_msec = 200; |
541 | break; | 540 | break; |
542 | case 2: | 541 | case 2: |
543 | ret = af9013_statistics_ber_unc_start(&state->fe); | 542 | af9013_statistics_ber_unc_start(&state->fe); |
544 | state->statistics_step++; | 543 | state->statistics_step++; |
545 | next_msec = 1000; | 544 | next_msec = 1000; |
546 | break; | 545 | break; |
547 | case 3: | 546 | case 3: |
548 | ret = af9013_statistics_snr_result(&state->fe); | 547 | af9013_statistics_snr_result(&state->fe); |
549 | state->statistics_step++; | 548 | state->statistics_step++; |
550 | next_msec = 400; | 549 | next_msec = 400; |
551 | break; | 550 | break; |
552 | case 4: | 551 | case 4: |
553 | ret = af9013_statistics_ber_unc_result(&state->fe); | 552 | af9013_statistics_ber_unc_result(&state->fe); |
554 | state->statistics_step++; | 553 | state->statistics_step++; |
555 | next_msec = 100; | 554 | next_msec = 100; |
556 | break; | 555 | break; |
@@ -558,8 +557,6 @@ static void af9013_statistics_work(struct work_struct *work) | |||
558 | 557 | ||
559 | schedule_delayed_work(&state->statistics_work, | 558 | schedule_delayed_work(&state->statistics_work, |
560 | msecs_to_jiffies(next_msec)); | 559 | msecs_to_jiffies(next_msec)); |
561 | |||
562 | return; | ||
563 | } | 560 | } |
564 | 561 | ||
565 | static int af9013_get_tune_settings(struct dvb_frontend *fe, | 562 | static int af9013_get_tune_settings(struct dvb_frontend *fe, |
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c index 5101f10f2d7a..98ecaf0900d6 100644 --- a/drivers/media/dvb/frontends/cx24110.c +++ b/drivers/media/dvb/frontends/cx24110.c | |||
@@ -512,14 +512,13 @@ static int cx24110_read_snr(struct dvb_frontend* fe, u16* snr) | |||
512 | static int cx24110_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks) | 512 | static int cx24110_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks) |
513 | { | 513 | { |
514 | struct cx24110_state *state = fe->demodulator_priv; | 514 | struct cx24110_state *state = fe->demodulator_priv; |
515 | u32 lastbyer; | ||
516 | 515 | ||
517 | if(cx24110_readreg(state,0x10)&0x40) { | 516 | if(cx24110_readreg(state,0x10)&0x40) { |
518 | /* the RS error counter has finished one counting window */ | 517 | /* the RS error counter has finished one counting window */ |
519 | cx24110_writereg(state,0x10,0x60); /* select the byer reg */ | 518 | cx24110_writereg(state,0x10,0x60); /* select the byer reg */ |
520 | lastbyer=cx24110_readreg(state,0x12)| | 519 | cx24110_readreg(state, 0x12) | |
521 | (cx24110_readreg(state,0x13)<<8)| | 520 | (cx24110_readreg(state, 0x13) << 8) | |
522 | (cx24110_readreg(state,0x14)<<16); | 521 | (cx24110_readreg(state, 0x14) << 16); |
523 | cx24110_writereg(state,0x10,0x70); /* select the bler reg */ | 522 | cx24110_writereg(state,0x10,0x70); /* select the bler reg */ |
524 | state->lastbler=cx24110_readreg(state,0x12)| | 523 | state->lastbler=cx24110_readreg(state,0x12)| |
525 | (cx24110_readreg(state,0x13)<<8)| | 524 | (cx24110_readreg(state,0x13)<<8)| |
diff --git a/drivers/media/dvb/frontends/dib9000.c b/drivers/media/dvb/frontends/dib9000.c index 80848b4c15d4..0661da919b50 100644 --- a/drivers/media/dvb/frontends/dib9000.c +++ b/drivers/media/dvb/frontends/dib9000.c | |||
@@ -708,7 +708,6 @@ static u8 dib9000_mbx_count(struct dib9000_state *state, u8 risc_id, u16 attr) | |||
708 | static int dib9000_mbx_process(struct dib9000_state *state, u16 attr) | 708 | static int dib9000_mbx_process(struct dib9000_state *state, u16 attr) |
709 | { | 709 | { |
710 | int ret = 0; | 710 | int ret = 0; |
711 | u16 tmp; | ||
712 | 711 | ||
713 | if (!state->platform.risc.fw_is_running) | 712 | if (!state->platform.risc.fw_is_running) |
714 | return -1; | 713 | return -1; |
@@ -721,7 +720,7 @@ static int dib9000_mbx_process(struct dib9000_state *state, u16 attr) | |||
721 | if (dib9000_mbx_count(state, 1, attr)) /* 1=RiscB */ | 720 | if (dib9000_mbx_count(state, 1, attr)) /* 1=RiscB */ |
722 | ret = dib9000_mbx_fetch_to_cache(state, attr); | 721 | ret = dib9000_mbx_fetch_to_cache(state, attr); |
723 | 722 | ||
724 | tmp = dib9000_read_word_attr(state, 1229, attr); /* Clear the IRQ */ | 723 | dib9000_read_word_attr(state, 1229, attr); /* Clear the IRQ */ |
725 | /* if (tmp) */ | 724 | /* if (tmp) */ |
726 | /* dprintk( "cleared IRQ: %x", tmp); */ | 725 | /* dprintk( "cleared IRQ: %x", tmp); */ |
727 | DibReleaseLock(&state->platform.risc.mbx_lock); | 726 | DibReleaseLock(&state->platform.risc.mbx_lock); |
diff --git a/drivers/media/dvb/frontends/it913x-fe.c b/drivers/media/dvb/frontends/it913x-fe.c index 84df03c29179..708cbf197913 100644 --- a/drivers/media/dvb/frontends/it913x-fe.c +++ b/drivers/media/dvb/frontends/it913x-fe.c | |||
@@ -633,10 +633,9 @@ static int it913x_fe_read_snr(struct dvb_frontend *fe, u16 *snr) | |||
633 | static int it913x_fe_read_ber(struct dvb_frontend *fe, u32 *ber) | 633 | static int it913x_fe_read_ber(struct dvb_frontend *fe, u32 *ber) |
634 | { | 634 | { |
635 | struct it913x_fe_state *state = fe->demodulator_priv; | 635 | struct it913x_fe_state *state = fe->demodulator_priv; |
636 | int ret; | ||
637 | u8 reg[5]; | 636 | u8 reg[5]; |
638 | /* Read Aborted Packets and Pre-Viterbi error rate 5 bytes */ | 637 | /* Read Aborted Packets and Pre-Viterbi error rate 5 bytes */ |
639 | ret = it913x_read_reg(state, RSD_ABORT_PKT_LSB, reg, sizeof(reg)); | 638 | it913x_read_reg(state, RSD_ABORT_PKT_LSB, reg, sizeof(reg)); |
640 | state->ucblocks += (u32)(reg[1] << 8) | reg[0]; | 639 | state->ucblocks += (u32)(reg[1] << 8) | reg[0]; |
641 | *ber = (u32)(reg[4] << 16) | (reg[3] << 8) | reg[2]; | 640 | *ber = (u32)(reg[4] << 16) | (reg[3] << 8) | reg[2]; |
642 | return 0; | 641 | return 0; |
@@ -658,10 +657,9 @@ static int it913x_fe_get_frontend(struct dvb_frontend *fe) | |||
658 | { | 657 | { |
659 | struct dtv_frontend_properties *p = &fe->dtv_property_cache; | 658 | struct dtv_frontend_properties *p = &fe->dtv_property_cache; |
660 | struct it913x_fe_state *state = fe->demodulator_priv; | 659 | struct it913x_fe_state *state = fe->demodulator_priv; |
661 | int ret; | ||
662 | u8 reg[8]; | 660 | u8 reg[8]; |
663 | 661 | ||
664 | ret = it913x_read_reg(state, REG_TPSD_TX_MODE, reg, sizeof(reg)); | 662 | it913x_read_reg(state, REG_TPSD_TX_MODE, reg, sizeof(reg)); |
665 | 663 | ||
666 | if (reg[3] < 3) | 664 | if (reg[3] < 3) |
667 | p->modulation = fe_con[reg[3]]; | 665 | p->modulation = fe_con[reg[3]]; |
@@ -691,25 +689,25 @@ static int it913x_fe_set_frontend(struct dvb_frontend *fe) | |||
691 | { | 689 | { |
692 | struct dtv_frontend_properties *p = &fe->dtv_property_cache; | 690 | struct dtv_frontend_properties *p = &fe->dtv_property_cache; |
693 | struct it913x_fe_state *state = fe->demodulator_priv; | 691 | struct it913x_fe_state *state = fe->demodulator_priv; |
694 | int ret, i; | 692 | int i; |
695 | u8 empty_ch, last_ch; | 693 | u8 empty_ch, last_ch; |
696 | 694 | ||
697 | state->it913x_status = 0; | 695 | state->it913x_status = 0; |
698 | 696 | ||
699 | /* Set bw*/ | 697 | /* Set bw*/ |
700 | ret = it913x_fe_select_bw(state, p->bandwidth_hz, | 698 | it913x_fe_select_bw(state, p->bandwidth_hz, |
701 | state->adcFrequency); | 699 | state->adcFrequency); |
702 | 700 | ||
703 | /* Training Mode Off */ | 701 | /* Training Mode Off */ |
704 | ret = it913x_write_reg(state, PRO_LINK, TRAINING_MODE, 0x0); | 702 | it913x_write_reg(state, PRO_LINK, TRAINING_MODE, 0x0); |
705 | 703 | ||
706 | /* Clear Empty Channel */ | 704 | /* Clear Empty Channel */ |
707 | ret = it913x_write_reg(state, PRO_DMOD, EMPTY_CHANNEL_STATUS, 0x0); | 705 | it913x_write_reg(state, PRO_DMOD, EMPTY_CHANNEL_STATUS, 0x0); |
708 | 706 | ||
709 | /* Clear bits */ | 707 | /* Clear bits */ |
710 | ret = it913x_write_reg(state, PRO_DMOD, MP2IF_SYNC_LK, 0x0); | 708 | it913x_write_reg(state, PRO_DMOD, MP2IF_SYNC_LK, 0x0); |
711 | /* LED on */ | 709 | /* LED on */ |
712 | ret = it913x_write_reg(state, PRO_LINK, GPIOH3_O, 0x1); | 710 | it913x_write_reg(state, PRO_LINK, GPIOH3_O, 0x1); |
713 | /* Select Band*/ | 711 | /* Select Band*/ |
714 | if ((p->frequency >= 51000000) && (p->frequency <= 230000000)) | 712 | if ((p->frequency >= 51000000) && (p->frequency <= 230000000)) |
715 | i = 0; | 713 | i = 0; |
@@ -720,7 +718,7 @@ static int it913x_fe_set_frontend(struct dvb_frontend *fe) | |||
720 | else | 718 | else |
721 | return -EOPNOTSUPP; | 719 | return -EOPNOTSUPP; |
722 | 720 | ||
723 | ret = it913x_write_reg(state, PRO_DMOD, FREE_BAND, i); | 721 | it913x_write_reg(state, PRO_DMOD, FREE_BAND, i); |
724 | 722 | ||
725 | deb_info("Frontend Set Tuner Type %02x", state->tuner_type); | 723 | deb_info("Frontend Set Tuner Type %02x", state->tuner_type); |
726 | switch (state->tuner_type) { | 724 | switch (state->tuner_type) { |
@@ -730,7 +728,7 @@ static int it913x_fe_set_frontend(struct dvb_frontend *fe) | |||
730 | case IT9135_60: | 728 | case IT9135_60: |
731 | case IT9135_61: | 729 | case IT9135_61: |
732 | case IT9135_62: | 730 | case IT9135_62: |
733 | ret = it9137_set_tuner(state, | 731 | it9137_set_tuner(state, |
734 | p->bandwidth_hz, p->frequency); | 732 | p->bandwidth_hz, p->frequency); |
735 | break; | 733 | break; |
736 | default: | 734 | default: |
@@ -742,9 +740,9 @@ static int it913x_fe_set_frontend(struct dvb_frontend *fe) | |||
742 | break; | 740 | break; |
743 | } | 741 | } |
744 | /* LED off */ | 742 | /* LED off */ |
745 | ret = it913x_write_reg(state, PRO_LINK, GPIOH3_O, 0x0); | 743 | it913x_write_reg(state, PRO_LINK, GPIOH3_O, 0x0); |
746 | /* Trigger ofsm */ | 744 | /* Trigger ofsm */ |
747 | ret = it913x_write_reg(state, PRO_DMOD, TRIGGER_OFSM, 0x0); | 745 | it913x_write_reg(state, PRO_DMOD, TRIGGER_OFSM, 0x0); |
748 | last_ch = 2; | 746 | last_ch = 2; |
749 | for (i = 0; i < 40; ++i) { | 747 | for (i = 0; i < 40; ++i) { |
750 | empty_ch = it913x_read_reg_u8(state, EMPTY_CHANNEL_STATUS); | 748 | empty_ch = it913x_read_reg_u8(state, EMPTY_CHANNEL_STATUS); |
diff --git a/drivers/media/dvb/frontends/lgs8gxx.c b/drivers/media/dvb/frontends/lgs8gxx.c index 4de1d3520cd2..568363a10a31 100644 --- a/drivers/media/dvb/frontends/lgs8gxx.c +++ b/drivers/media/dvb/frontends/lgs8gxx.c | |||
@@ -262,7 +262,6 @@ static int lgs8gxx_set_mode_auto(struct lgs8gxx_state *priv) | |||
262 | 262 | ||
263 | static int lgs8gxx_set_mode_manual(struct lgs8gxx_state *priv) | 263 | static int lgs8gxx_set_mode_manual(struct lgs8gxx_state *priv) |
264 | { | 264 | { |
265 | int ret = 0; | ||
266 | u8 t; | 265 | u8 t; |
267 | 266 | ||
268 | if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { | 267 | if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { |
@@ -296,7 +295,7 @@ static int lgs8gxx_set_mode_manual(struct lgs8gxx_state *priv) | |||
296 | if (priv->config->prod == LGS8GXX_PROD_LGS8913) | 295 | if (priv->config->prod == LGS8GXX_PROD_LGS8913) |
297 | lgs8gxx_write_reg(priv, 0xC1, 0); | 296 | lgs8gxx_write_reg(priv, 0xC1, 0); |
298 | 297 | ||
299 | ret = lgs8gxx_read_reg(priv, 0xC5, &t); | 298 | lgs8gxx_read_reg(priv, 0xC5, &t); |
300 | t = (t & 0xE0) | 0x06; | 299 | t = (t & 0xE0) | 0x06; |
301 | lgs8gxx_write_reg(priv, 0xC5, t); | 300 | lgs8gxx_write_reg(priv, 0xC5, t); |
302 | 301 | ||
diff --git a/drivers/media/dvb/frontends/m88rs2000.c b/drivers/media/dvb/frontends/m88rs2000.c index 045ee5a6f7ae..82cc14542479 100644 --- a/drivers/media/dvb/frontends/m88rs2000.c +++ b/drivers/media/dvb/frontends/m88rs2000.c | |||
@@ -654,7 +654,6 @@ static int m88rs2000_set_tuner(struct dvb_frontend *fe, u16 *offset) | |||
654 | static int m88rs2000_set_fec(struct m88rs2000_state *state, | 654 | static int m88rs2000_set_fec(struct m88rs2000_state *state, |
655 | fe_code_rate_t fec) | 655 | fe_code_rate_t fec) |
656 | { | 656 | { |
657 | int ret; | ||
658 | u16 fec_set; | 657 | u16 fec_set; |
659 | switch (fec) { | 658 | switch (fec) { |
660 | /* This is not confirmed kept for reference */ | 659 | /* This is not confirmed kept for reference */ |
@@ -677,7 +676,7 @@ static int m88rs2000_set_fec(struct m88rs2000_state *state, | |||
677 | default: | 676 | default: |
678 | fec_set = 0x08; | 677 | fec_set = 0x08; |
679 | } | 678 | } |
680 | ret = m88rs2000_demod_write(state, 0x76, fec_set); | 679 | m88rs2000_demod_write(state, 0x76, fec_set); |
681 | 680 | ||
682 | return 0; | 681 | return 0; |
683 | } | 682 | } |
diff --git a/drivers/media/dvb/frontends/stb6100.c b/drivers/media/dvb/frontends/stb6100.c index def88abb30bf..2e93e65d2cdb 100644 --- a/drivers/media/dvb/frontends/stb6100.c +++ b/drivers/media/dvb/frontends/stb6100.c | |||
@@ -158,7 +158,6 @@ static int stb6100_read_regs(struct stb6100_state *state, u8 regs[]) | |||
158 | static int stb6100_read_reg(struct stb6100_state *state, u8 reg) | 158 | static int stb6100_read_reg(struct stb6100_state *state, u8 reg) |
159 | { | 159 | { |
160 | u8 regs[STB6100_NUMREGS]; | 160 | u8 regs[STB6100_NUMREGS]; |
161 | int rc; | ||
162 | 161 | ||
163 | struct i2c_msg msg = { | 162 | struct i2c_msg msg = { |
164 | .addr = state->config->tuner_address + reg, | 163 | .addr = state->config->tuner_address + reg, |
@@ -167,7 +166,7 @@ static int stb6100_read_reg(struct stb6100_state *state, u8 reg) | |||
167 | .len = 1 | 166 | .len = 1 |
168 | }; | 167 | }; |
169 | 168 | ||
170 | rc = i2c_transfer(state->i2c, &msg, 1); | 169 | i2c_transfer(state->i2c, &msg, 1); |
171 | 170 | ||
172 | if (unlikely(reg >= STB6100_NUMREGS)) { | 171 | if (unlikely(reg >= STB6100_NUMREGS)) { |
173 | dprintk(verbose, FE_ERROR, 1, "Invalid register offset 0x%x", reg); | 172 | dprintk(verbose, FE_ERROR, 1, "Invalid register offset 0x%x", reg); |
diff --git a/drivers/media/dvb/frontends/stv0297.c b/drivers/media/dvb/frontends/stv0297.c index 85c157a1fe5e..d40f226160ef 100644 --- a/drivers/media/dvb/frontends/stv0297.c +++ b/drivers/media/dvb/frontends/stv0297.c | |||
@@ -414,7 +414,6 @@ static int stv0297_set_frontend(struct dvb_frontend *fe) | |||
414 | int delay; | 414 | int delay; |
415 | int sweeprate; | 415 | int sweeprate; |
416 | int carrieroffset; | 416 | int carrieroffset; |
417 | unsigned long starttime; | ||
418 | unsigned long timeout; | 417 | unsigned long timeout; |
419 | fe_spectral_inversion_t inversion; | 418 | fe_spectral_inversion_t inversion; |
420 | 419 | ||
@@ -543,7 +542,6 @@ static int stv0297_set_frontend(struct dvb_frontend *fe) | |||
543 | stv0297_writereg_mask(state, 0x43, 0x10, 0x10); | 542 | stv0297_writereg_mask(state, 0x43, 0x10, 0x10); |
544 | 543 | ||
545 | /* wait for WGAGC lock */ | 544 | /* wait for WGAGC lock */ |
546 | starttime = jiffies; | ||
547 | timeout = jiffies + msecs_to_jiffies(2000); | 545 | timeout = jiffies + msecs_to_jiffies(2000); |
548 | while (time_before(jiffies, timeout)) { | 546 | while (time_before(jiffies, timeout)) { |
549 | msleep(10); | 547 | msleep(10); |
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index 4aef1877ed42..d79e69f65cbb 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c | |||
@@ -2842,7 +2842,6 @@ static int stv090x_optimize_track(struct stv090x_state *state) | |||
2842 | { | 2842 | { |
2843 | struct dvb_frontend *fe = &state->frontend; | 2843 | struct dvb_frontend *fe = &state->frontend; |
2844 | 2844 | ||
2845 | enum stv090x_rolloff rolloff; | ||
2846 | enum stv090x_modcod modcod; | 2845 | enum stv090x_modcod modcod; |
2847 | 2846 | ||
2848 | s32 srate, pilots, aclc, f_1, f_0, i = 0, blind_tune = 0; | 2847 | s32 srate, pilots, aclc, f_1, f_0, i = 0, blind_tune = 0; |
@@ -2966,7 +2965,6 @@ static int stv090x_optimize_track(struct stv090x_state *state) | |||
2966 | f_1 = STV090x_READ_DEMOD(state, CFR2); | 2965 | f_1 = STV090x_READ_DEMOD(state, CFR2); |
2967 | f_0 = STV090x_READ_DEMOD(state, CFR1); | 2966 | f_0 = STV090x_READ_DEMOD(state, CFR1); |
2968 | reg = STV090x_READ_DEMOD(state, TMGOBS); | 2967 | reg = STV090x_READ_DEMOD(state, TMGOBS); |
2969 | rolloff = STV090x_GETFIELD_Px(reg, ROLLOFF_STATUS_FIELD); | ||
2970 | 2968 | ||
2971 | if (state->algo == STV090x_BLIND_SEARCH) { | 2969 | if (state->algo == STV090x_BLIND_SEARCH) { |
2972 | STV090x_WRITE_DEMOD(state, SFRSTEP, 0x00); | 2970 | STV090x_WRITE_DEMOD(state, SFRSTEP, 0x00); |
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c index ac7237891374..4de3691610bc 100644 --- a/drivers/media/dvb/frontends/zl10353.c +++ b/drivers/media/dvb/frontends/zl10353.c | |||
@@ -559,7 +559,6 @@ static int zl10353_init(struct dvb_frontend *fe) | |||
559 | { | 559 | { |
560 | struct zl10353_state *state = fe->demodulator_priv; | 560 | struct zl10353_state *state = fe->demodulator_priv; |
561 | u8 zl10353_reset_attach[6] = { 0x50, 0x03, 0x64, 0x46, 0x15, 0x0F }; | 561 | u8 zl10353_reset_attach[6] = { 0x50, 0x03, 0x64, 0x46, 0x15, 0x0F }; |
562 | int rc = 0; | ||
563 | 562 | ||
564 | if (debug_regs) | 563 | if (debug_regs) |
565 | zl10353_dump_regs(fe); | 564 | zl10353_dump_regs(fe); |
@@ -573,7 +572,7 @@ static int zl10353_init(struct dvb_frontend *fe) | |||
573 | /* Do a "hard" reset if not already done */ | 572 | /* Do a "hard" reset if not already done */ |
574 | if (zl10353_read_register(state, 0x50) != zl10353_reset_attach[1] || | 573 | if (zl10353_read_register(state, 0x50) != zl10353_reset_attach[1] || |
575 | zl10353_read_register(state, 0x51) != zl10353_reset_attach[2]) { | 574 | zl10353_read_register(state, 0x51) != zl10353_reset_attach[2]) { |
576 | rc = zl10353_write(fe, zl10353_reset_attach, | 575 | zl10353_write(fe, zl10353_reset_attach, |
577 | sizeof(zl10353_reset_attach)); | 576 | sizeof(zl10353_reset_attach)); |
578 | if (debug_regs) | 577 | if (debug_regs) |
579 | zl10353_dump_regs(fe); | 578 | zl10353_dump_regs(fe); |
diff --git a/drivers/media/dvb/siano/smssdio.c b/drivers/media/dvb/siano/smssdio.c index 91f8c8291e2b..d6f3f100699a 100644 --- a/drivers/media/dvb/siano/smssdio.c +++ b/drivers/media/dvb/siano/smssdio.c | |||
@@ -114,7 +114,7 @@ out: | |||
114 | 114 | ||
115 | static void smssdio_interrupt(struct sdio_func *func) | 115 | static void smssdio_interrupt(struct sdio_func *func) |
116 | { | 116 | { |
117 | int ret, isr; | 117 | int ret; |
118 | 118 | ||
119 | struct smssdio_device *smsdev; | 119 | struct smssdio_device *smsdev; |
120 | struct smscore_buffer_t *cb; | 120 | struct smscore_buffer_t *cb; |
@@ -127,7 +127,7 @@ static void smssdio_interrupt(struct sdio_func *func) | |||
127 | * The interrupt register has no defined meaning. It is just | 127 | * The interrupt register has no defined meaning. It is just |
128 | * a way of turning of the level triggered interrupt. | 128 | * a way of turning of the level triggered interrupt. |
129 | */ | 129 | */ |
130 | isr = sdio_readb(func, SMSSDIO_INT, &ret); | 130 | (void)sdio_readb(func, SMSSDIO_INT, &ret); |
131 | if (ret) { | 131 | if (ret) { |
132 | sms_err("Unable to read interrupt register!\n"); | 132 | sms_err("Unable to read interrupt register!\n"); |
133 | return; | 133 | return; |