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:
cf117ea
)
isdn: l3ni1: Fix set-but-unused variables.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:43:20 +0000
(16:43 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:43:20 +0000
(16:43 -0700)
The variable 'cause' is set but unused in ni1up(). Just
kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/l3ni1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/isdn/hisax/l3ni1.c
b/drivers/isdn/hisax/l3ni1.c
index 7b229c0ce1151b29e99bcf25c784bf80a9608a3b..092dcbb39d94315b8f018f3cda63c2f33b0aeb90 100644
(file)
--- a/
drivers/isdn/hisax/l3ni1.c
+++ b/
drivers/isdn/hisax/l3ni1.c
@@
-2883,7
+2883,7
@@
global_handler(struct PStack *st, int mt, struct sk_buff *skb)
static void
ni1up(struct PStack *st, int pr, void *arg)
{
- int i, mt, cr, ca
use, ca
llState;
+ int i, mt, cr, callState;
char *ptr;
u_char *p;
struct sk_buff *skb = arg;
@@
-2986,12
+2986,10
@@
ni1up(struct PStack *st, int pr, void *arg)
return;
}
} else if (mt == MT_STATUS) {
- cause = 0;
if ((ptr = findie(skb->data, skb->len, IE_CAUSE, 0)) != NULL) {
ptr++;
if (*ptr++ == 2)
ptr++;
- cause = *ptr & 0x7f;
}
callState = 0;
if ((ptr = findie(skb->data, skb->len, IE_CALL_STATE, 0)) != NULL) {