diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 19:36:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 19:36:28 -0400 |
commit | 011bc1ef447dd6aa969d9c83a90fe3df360b5d6e (patch) | |
tree | 9239d0b866ea5c7ac0eb5d9b8f010bdead09296c /drivers/isdn | |
parent | 3c76c58fca03c1162ab8592f71c996e933af3a9e (diff) |
isdn: arcofi: Fix set-but-unused variables.
The variable 'val' is set but unused in
send_arcofi(). Just kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/hisax/arcofi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/arcofi.c b/drivers/isdn/hisax/arcofi.c index 85a8fd8dd0b7..21cbbe1d5563 100644 --- a/drivers/isdn/hisax/arcofi.c +++ b/drivers/isdn/hisax/arcofi.c | |||
@@ -30,8 +30,6 @@ add_arcofi_timer(struct IsdnCardState *cs) { | |||
30 | 30 | ||
31 | static void | 31 | static void |
32 | send_arcofi(struct IsdnCardState *cs) { | 32 | send_arcofi(struct IsdnCardState *cs) { |
33 | u_char val; | ||
34 | |||
35 | add_arcofi_timer(cs); | 33 | add_arcofi_timer(cs); |
36 | cs->dc.isac.mon_txp = 0; | 34 | cs->dc.isac.mon_txp = 0; |
37 | cs->dc.isac.mon_txc = cs->dc.isac.arcofi_list->len; | 35 | cs->dc.isac.mon_txc = cs->dc.isac.arcofi_list->len; |
@@ -45,7 +43,7 @@ send_arcofi(struct IsdnCardState *cs) { | |||
45 | cs->dc.isac.mocr &= 0x0f; | 43 | cs->dc.isac.mocr &= 0x0f; |
46 | cs->dc.isac.mocr |= 0xa0; | 44 | cs->dc.isac.mocr |= 0xa0; |
47 | cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr); | 45 | cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr); |
48 | val = cs->readisac(cs, ISAC_MOSR); | 46 | (void) cs->readisac(cs, ISAC_MOSR); |
49 | cs->writeisac(cs, ISAC_MOX1, cs->dc.isac.mon_tx[cs->dc.isac.mon_txp++]); | 47 | cs->writeisac(cs, ISAC_MOX1, cs->dc.isac.mon_tx[cs->dc.isac.mon_txp++]); |
50 | cs->dc.isac.mocr |= 0x10; | 48 | cs->dc.isac.mocr |= 0x10; |
51 | cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr); | 49 | cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr); |