projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c76c58
)
isdn: arcofi: Fix set-but-unused variables.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:36:28 +0000
(16:36 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:36:28 +0000
(16:36 -0700)
The variable 'val' is set but unused in
send_arcofi(). Just kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/arcofi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/isdn/hisax/arcofi.c
b/drivers/isdn/hisax/arcofi.c
index 85a8fd8dd0b7c64f69688b926e9a30a0ecbff5cf..21cbbe1d55635b8e9d5490efd63c2e352debf98a 100644
(file)
--- a/
drivers/isdn/hisax/arcofi.c
+++ b/
drivers/isdn/hisax/arcofi.c
@@
-30,8
+30,6
@@
add_arcofi_timer(struct IsdnCardState *cs) {
static void
send_arcofi(struct IsdnCardState *cs) {
- u_char val;
-
add_arcofi_timer(cs);
cs->dc.isac.mon_txp = 0;
cs->dc.isac.mon_txc = cs->dc.isac.arcofi_list->len;
@@
-45,7
+43,7
@@
send_arcofi(struct IsdnCardState *cs) {
cs->dc.isac.mocr &= 0x0f;
cs->dc.isac.mocr |= 0xa0;
cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr);
-
val =
cs->readisac(cs, ISAC_MOSR);
+
(void)
cs->readisac(cs, ISAC_MOSR);
cs->writeisac(cs, ISAC_MOX1, cs->dc.isac.mon_tx[cs->dc.isac.mon_txp++]);
cs->dc.isac.mocr |= 0x10;
cs->writeisac(cs, ISAC_MOCR, cs->dc.isac.mocr);