projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f0e4a
)
isdn: l3dss1: Fix set-but-unused variables.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:42:15 +0000
(16:42 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:42:15 +0000
(16:42 -0700)
The variable 'cause' is set but unused in dss1up(). Just
kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/l3dss1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/isdn/hisax/l3dss1.c
b/drivers/isdn/hisax/l3dss1.c
index 8e2fd02ecce0edd164c377f2e742f37533c8419e..b0d9ab1f21c07b22b1a770ebaab18a87b43202e2 100644
(file)
--- a/
drivers/isdn/hisax/l3dss1.c
+++ b/
drivers/isdn/hisax/l3dss1.c
@@
-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, ca
use, ca
llState;
+ 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) {