mISDN: replace sum of bitmasks with OR operation.
Suggested by coccinelle and manually verified. Signed-off-by: Alexandru Juncu <alexj@rosedu.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
aafee33423
Коммит
6e3d6774a7
|
@ -1307,11 +1307,11 @@ mode_hfcpci(struct bchannel *bch, int bc, int protocol)
|
||||||
}
|
}
|
||||||
if (fifo2 & 2) {
|
if (fifo2 & 2) {
|
||||||
hc->hw.fifo_en &= ~HFCPCI_FIFOEN_B2;
|
hc->hw.fifo_en &= ~HFCPCI_FIFOEN_B2;
|
||||||
hc->hw.int_m1 &= ~(HFCPCI_INTS_B2TRANS +
|
hc->hw.int_m1 &= ~(HFCPCI_INTS_B2TRANS |
|
||||||
HFCPCI_INTS_B2REC);
|
HFCPCI_INTS_B2REC);
|
||||||
} else {
|
} else {
|
||||||
hc->hw.fifo_en &= ~HFCPCI_FIFOEN_B1;
|
hc->hw.fifo_en &= ~HFCPCI_FIFOEN_B1;
|
||||||
hc->hw.int_m1 &= ~(HFCPCI_INTS_B1TRANS +
|
hc->hw.int_m1 &= ~(HFCPCI_INTS_B1TRANS |
|
||||||
HFCPCI_INTS_B1REC);
|
HFCPCI_INTS_B1REC);
|
||||||
}
|
}
|
||||||
#ifdef REVERSE_BITORDER
|
#ifdef REVERSE_BITORDER
|
||||||
|
@ -1346,14 +1346,14 @@ mode_hfcpci(struct bchannel *bch, int bc, int protocol)
|
||||||
if (fifo2 & 2) {
|
if (fifo2 & 2) {
|
||||||
hc->hw.fifo_en |= HFCPCI_FIFOEN_B2;
|
hc->hw.fifo_en |= HFCPCI_FIFOEN_B2;
|
||||||
if (!tics)
|
if (!tics)
|
||||||
hc->hw.int_m1 |= (HFCPCI_INTS_B2TRANS +
|
hc->hw.int_m1 |= (HFCPCI_INTS_B2TRANS |
|
||||||
HFCPCI_INTS_B2REC);
|
HFCPCI_INTS_B2REC);
|
||||||
hc->hw.ctmt |= 2;
|
hc->hw.ctmt |= 2;
|
||||||
hc->hw.conn &= ~0x18;
|
hc->hw.conn &= ~0x18;
|
||||||
} else {
|
} else {
|
||||||
hc->hw.fifo_en |= HFCPCI_FIFOEN_B1;
|
hc->hw.fifo_en |= HFCPCI_FIFOEN_B1;
|
||||||
if (!tics)
|
if (!tics)
|
||||||
hc->hw.int_m1 |= (HFCPCI_INTS_B1TRANS +
|
hc->hw.int_m1 |= (HFCPCI_INTS_B1TRANS |
|
||||||
HFCPCI_INTS_B1REC);
|
HFCPCI_INTS_B1REC);
|
||||||
hc->hw.ctmt |= 1;
|
hc->hw.ctmt |= 1;
|
||||||
hc->hw.conn &= ~0x03;
|
hc->hw.conn &= ~0x03;
|
||||||
|
@ -1375,14 +1375,14 @@ mode_hfcpci(struct bchannel *bch, int bc, int protocol)
|
||||||
if (fifo2 & 2) {
|
if (fifo2 & 2) {
|
||||||
hc->hw.last_bfifo_cnt[1] = 0;
|
hc->hw.last_bfifo_cnt[1] = 0;
|
||||||
hc->hw.fifo_en |= HFCPCI_FIFOEN_B2;
|
hc->hw.fifo_en |= HFCPCI_FIFOEN_B2;
|
||||||
hc->hw.int_m1 |= (HFCPCI_INTS_B2TRANS +
|
hc->hw.int_m1 |= (HFCPCI_INTS_B2TRANS |
|
||||||
HFCPCI_INTS_B2REC);
|
HFCPCI_INTS_B2REC);
|
||||||
hc->hw.ctmt &= ~2;
|
hc->hw.ctmt &= ~2;
|
||||||
hc->hw.conn &= ~0x18;
|
hc->hw.conn &= ~0x18;
|
||||||
} else {
|
} else {
|
||||||
hc->hw.last_bfifo_cnt[0] = 0;
|
hc->hw.last_bfifo_cnt[0] = 0;
|
||||||
hc->hw.fifo_en |= HFCPCI_FIFOEN_B1;
|
hc->hw.fifo_en |= HFCPCI_FIFOEN_B1;
|
||||||
hc->hw.int_m1 |= (HFCPCI_INTS_B1TRANS +
|
hc->hw.int_m1 |= (HFCPCI_INTS_B1TRANS |
|
||||||
HFCPCI_INTS_B1REC);
|
HFCPCI_INTS_B1REC);
|
||||||
hc->hw.ctmt &= ~1;
|
hc->hw.ctmt &= ~1;
|
||||||
hc->hw.conn &= ~0x03;
|
hc->hw.conn &= ~0x03;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче