RE: [PATCH 23/28] mISDN: Fix compiler warnings
"David Laight" <[email protected]>
| Newsgroups | gmane.linux.network,gmane.linux.isdn.i4l.user |
|---|---|
| Message-ID | <[email protected]> |
> diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c
> b/drivers/isdn/hardware/mISDN/hfcmulti.c
> index 884c090..144c35a 100644
> --- a/drivers/isdn/hardware/mISDN/hfcmulti.c
> +++ b/drivers/isdn/hardware/mISDN/hfcmulti.c
> @@ -2456,12 +2456,12 @@ handle_timer_irq(struct hfc_multi *hc)
> spin_unlock_irqrestore(&HFClock, flags);
> }
> if (test_bit(HFC_CHIP_2MBITRAW, &hc->chip)) {
> - if (hc->created[hc->chan[0].port] && hc->chan[ch].bch &&
> + ch = 0;
> + if (hc->created[hc->chan[ch].port] &&
> hc->chan[ch].bch &&
> test_bit(FLG_ACTIVE, &hc->chan[ch].bch->Flags)) {
> ch_activ++;
> - hfcmulti_tx(hc, 0);
> - hfcmulti_rx(hc, 0);
> - ch = 1;
> + hfcmulti_tx(hc, ch);
> + hfcmulti_rx(hc, ch);
> if (hc->chan[ch].dch &&
> hc->chan[ch].nt_timer > -1) {
> dch = hc->chan[ch].dch;
That seems to change the fields checked in the final 'if'.
Not sure it is the intended behaviour.
David