Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf117eaf authored by David S. Miller's avatar David S. Miller
Browse files

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



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

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f6f0e4a7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2943,7 +2943,7 @@ global_handler(struct PStack *st, int mt, struct sk_buff *skb)
static void
dss1up(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;
@@ -3034,12 +3034,10 @@ dss1up(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) {