Commit cf117eafa0dc17c6f973d078d4e0bf2069f45ce7
1 parent
f6f0e4a7a3
Exists in
master
and in
7 other branches
isdn: l3dss1: Fix set-but-unused variables.
The variable 'cause' is set but unused in dss1up(). Just kill it off. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/isdn/hisax/l3dss1.c
... | ... | @@ -2943,7 +2943,7 @@ |
2943 | 2943 | static void |
2944 | 2944 | dss1up(struct PStack *st, int pr, void *arg) |
2945 | 2945 | { |
2946 | - int i, mt, cr, cause, callState; | |
2946 | + int i, mt, cr, callState; | |
2947 | 2947 | char *ptr; |
2948 | 2948 | u_char *p; |
2949 | 2949 | struct sk_buff *skb = arg; |
2950 | 2950 | |
... | ... | @@ -3034,12 +3034,10 @@ |
3034 | 3034 | return; |
3035 | 3035 | } |
3036 | 3036 | } else if (mt == MT_STATUS) { |
3037 | - cause = 0; | |
3038 | 3037 | if ((ptr = findie(skb->data, skb->len, IE_CAUSE, 0)) != NULL) { |
3039 | 3038 | ptr++; |
3040 | 3039 | if (*ptr++ == 2) |
3041 | 3040 | ptr++; |
3042 | - cause = *ptr & 0x7f; | |
3043 | 3041 | } |
3044 | 3042 | callState = 0; |
3045 | 3043 | if ((ptr = findie(skb->data, skb->len, IE_CALL_STATE, 0)) != NULL) { |