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>
This commit is contained in:
parent
cf117eafa0
commit
1397c5df25
@ -2883,7 +2883,7 @@ global_handler(struct PStack *st, int mt, struct sk_buff *skb)
|
|||||||
static void
|
static void
|
||||||
ni1up(struct PStack *st, int pr, void *arg)
|
ni1up(struct PStack *st, int pr, void *arg)
|
||||||
{
|
{
|
||||||
int i, mt, cr, cause, callState;
|
int i, mt, cr, callState;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
u_char *p;
|
u_char *p;
|
||||||
struct sk_buff *skb = arg;
|
struct sk_buff *skb = arg;
|
||||||
@ -2986,12 +2986,10 @@ ni1up(struct PStack *st, int pr, void *arg)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (mt == MT_STATUS) {
|
} else if (mt == MT_STATUS) {
|
||||||
cause = 0;
|
|
||||||
if ((ptr = findie(skb->data, skb->len, IE_CAUSE, 0)) != NULL) {
|
if ((ptr = findie(skb->data, skb->len, IE_CAUSE, 0)) != NULL) {
|
||||||
ptr++;
|
ptr++;
|
||||||
if (*ptr++ == 2)
|
if (*ptr++ == 2)
|
||||||
ptr++;
|
ptr++;
|
||||||
cause = *ptr & 0x7f;
|
|
||||||
}
|
}
|
||||||
callState = 0;
|
callState = 0;
|
||||||
if ((ptr = findie(skb->data, skb->len, IE_CALL_STATE, 0)) != NULL) {
|
if ((ptr = findie(skb->data, skb->len, IE_CALL_STATE, 0)) != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user