diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 16:43:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 16:43:20 -0700 |
commit | 1397c5df2547f3296ad37a0c77daff3b124b98c8 (patch) | |
tree | dec52a035cc817777d420c8efcf77886ff91f5bb /drivers/isdn/hisax | |
parent | cf117eafa0dc17c6f973d078d4e0bf2069f45ce7 (diff) | |
download | blackbird-op-linux-1397c5df2547f3296ad37a0c77daff3b124b98c8.tar.gz blackbird-op-linux-1397c5df2547f3296ad37a0c77daff3b124b98c8.zip |
isdn: l3ni1: Fix set-but-unused variables.
The variable 'cause' is set but unused in ni1up(). Just
kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hisax')
-rw-r--r-- | drivers/isdn/hisax/l3ni1.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/l3ni1.c b/drivers/isdn/hisax/l3ni1.c index 7b229c0ce115..092dcbb39d94 100644 --- 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, cause, callState; + 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) { |