Commit d462003ddbb28926109396b9038299fc740c2efc
1 parent
a1e6216d1b
Exists in
master
and in
7 other branches
isdn: ipacx: Fix set-but-unused variables.
The variable 'cda2_cr' is set but unused in ctrl_complete(). Just kill it off. Keep the cs->readisac() call just in case the register read has side effects. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/isdn/hisax/ipacx.c
... | ... | @@ -96,7 +96,7 @@ |
96 | 96 | { |
97 | 97 | struct IsdnCardState *cs = (struct IsdnCardState *) st->l1.hardware; |
98 | 98 | struct sk_buff *skb = arg; |
99 | - u_char cda1_cr, cda2_cr; | |
99 | + u_char cda1_cr; | |
100 | 100 | |
101 | 101 | switch (pr) { |
102 | 102 | case (PH_DATA |REQUEST): |
... | ... | @@ -163,7 +163,7 @@ |
163 | 163 | cs->writeisac(cs, IPACX_CDA_TSDP10, 0x80); // Timeslot 0 is B1 |
164 | 164 | cs->writeisac(cs, IPACX_CDA_TSDP11, 0x81); // Timeslot 0 is B1 |
165 | 165 | cda1_cr = cs->readisac(cs, IPACX_CDA1_CR); |
166 | - cda2_cr = cs->readisac(cs, IPACX_CDA2_CR); | |
166 | + (void) cs->readisac(cs, IPACX_CDA2_CR); | |
167 | 167 | if ((long)arg &1) { // loop B1 |
168 | 168 | cs->writeisac(cs, IPACX_CDA1_CR, cda1_cr |0x0a); |
169 | 169 | } |