Skip to contentSkip to conversation

isdn: l3ni1: Fix set-but-unused variables.

PATCH In review David Miller 1 participant 1 message Apr 18, 2011

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 25/42 isdn: l3ni1: Fix set-but-unused variables.

The variable 'cause' is set but unused in ni1up(). Just kill it off.

---
 drivers/isdn/hisax/l3ni1.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/isdn/hisax/l3ni1.c +1 -3
index 7b229c0..092dcbb 100644
@@ -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) {
Signature · 1 line
1.7.4.3