diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-13 00:16:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 00:16:58 -0500 |
commit | bb68b1d964f89b19dc13d4f685a7d29616e2a4cb (patch) | |
tree | 52d73f3e9c82aafd79a41fef6806dd206b2ec4e0 /drivers/isdn/mISDN | |
parent | 65a40516b231f693f3afee4df77fc63c08ba8fa9 (diff) |
mISDN: fix sparse warning: symbol 'nskb' shadows an earlier one
Impact: define first occurence of variable 'nskb' in inner most possible scope
Fix this sparse warning:
drivers/isdn/mISDN/dsp_core.c:746:20: warning: symbol 'nskb' shadows an earlier one
drivers/isdn/mISDN/dsp_core.c:634:19: originally declared here
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/mISDN')
-rw-r--r-- | drivers/isdn/mISDN/dsp_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/mISDN/dsp_core.c b/drivers/isdn/mISDN/dsp_core.c index 41af06350ee5..1dc21d803410 100644 --- a/drivers/isdn/mISDN/dsp_core.c +++ b/drivers/isdn/mISDN/dsp_core.c | |||
@@ -631,7 +631,6 @@ dsp_function(struct mISDNchannel *ch, struct sk_buff *skb) | |||
631 | int ret = 0; | 631 | int ret = 0; |
632 | u8 *digits; | 632 | u8 *digits; |
633 | int cont; | 633 | int cont; |
634 | struct sk_buff *nskb; | ||
635 | u_long flags; | 634 | u_long flags; |
636 | 635 | ||
637 | hh = mISDN_HEAD_P(skb); | 636 | hh = mISDN_HEAD_P(skb); |
@@ -690,6 +689,7 @@ dsp_function(struct mISDNchannel *ch, struct sk_buff *skb) | |||
690 | digits = dsp_dtmf_goertzel_decode(dsp, skb->data, | 689 | digits = dsp_dtmf_goertzel_decode(dsp, skb->data, |
691 | skb->len, (dsp_options&DSP_OPT_ULAW)?1:0); | 690 | skb->len, (dsp_options&DSP_OPT_ULAW)?1:0); |
692 | while (*digits) { | 691 | while (*digits) { |
692 | struct sk_buff *nskb; | ||
693 | if (dsp_debug & DEBUG_DSP_DTMF) | 693 | if (dsp_debug & DEBUG_DSP_DTMF) |
694 | printk(KERN_DEBUG "%s: digit" | 694 | printk(KERN_DEBUG "%s: digit" |
695 | "(%c) to layer %s\n", | 695 | "(%c) to layer %s\n", |