diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 19:43:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 19:43:20 -0400 |
commit | 1397c5df2547f3296ad37a0c77daff3b124b98c8 (patch) | |
tree | dec52a035cc817777d420c8efcf77886ff91f5bb /drivers/isdn | |
parent | cf117eafa0dc17c6f973d078d4e0bf2069f45ce7 (diff) |
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')
-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) | |||
2883 | static void | 2883 | static void |
2884 | ni1up(struct PStack *st, int pr, void *arg) | 2884 | ni1up(struct PStack *st, int pr, void *arg) |
2885 | { | 2885 | { |
2886 | int i, mt, cr, cause, callState; | 2886 | int i, mt, cr, callState; |
2887 | char *ptr; | 2887 | char *ptr; |
2888 | u_char *p; | 2888 | u_char *p; |
2889 | struct sk_buff *skb = arg; | 2889 | struct sk_buff *skb = arg; |
@@ -2986,12 +2986,10 @@ ni1up(struct PStack *st, int pr, void *arg) | |||
2986 | return; | 2986 | return; |
2987 | } | 2987 | } |
2988 | } else if (mt == MT_STATUS) { | 2988 | } else if (mt == MT_STATUS) { |
2989 | cause = 0; | ||
2990 | if ((ptr = findie(skb->data, skb->len, IE_CAUSE, 0)) != NULL) { | 2989 | if ((ptr = findie(skb->data, skb->len, IE_CAUSE, 0)) != NULL) { |
2991 | ptr++; | 2990 | ptr++; |
2992 | if (*ptr++ == 2) | 2991 | if (*ptr++ == 2) |
2993 | ptr++; | 2992 | ptr++; |
2994 | cause = *ptr & 0x7f; | ||
2995 | } | 2993 | } |
2996 | callState = 0; | 2994 | callState = 0; |
2997 | if ((ptr = findie(skb->data, skb->len, IE_CALL_STATE, 0)) != NULL) { | 2995 | if ((ptr = findie(skb->data, skb->len, IE_CALL_STATE, 0)) != NULL) { |