diff options
author | Satyam Sharma <satyam@infradead.org> | 2007-09-16 17:54:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-09-16 17:54:05 -0400 |
commit | ddeee3ce7fbf0e800f2a26a76d6018b42b337cc2 (patch) | |
tree | 686d949a3ce1b80aa96bec276dc144cc33052f35 /net | |
parent | ce5d0b47f13f83dfb9fbb8ac91adad7120747aaf (diff) |
[PKT_SCHED]: sch_cbq.c: Shut up uninitialized variable warning
net/sched/sch_cbq.c: In function 'cbq_enqueue':
net/sched/sch_cbq.c:383: warning: 'ret' may be used uninitialized in this function
has been verified to be a bogus case. So let's shut it up.
Signed-off-by: Satyam Sharma <satyam@infradead.org>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_cbq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_cbq.c b/net/sched/sch_cbq.c index e38c2839b25c..cbef3bbfc20f 100644 --- a/net/sched/sch_cbq.c +++ b/net/sched/sch_cbq.c | |||
@@ -380,7 +380,7 @@ cbq_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
380 | { | 380 | { |
381 | struct cbq_sched_data *q = qdisc_priv(sch); | 381 | struct cbq_sched_data *q = qdisc_priv(sch); |
382 | int len = skb->len; | 382 | int len = skb->len; |
383 | int ret; | 383 | int uninitialized_var(ret); |
384 | struct cbq_class *cl = cbq_classify(skb, sch, &ret); | 384 | struct cbq_class *cl = cbq_classify(skb, sch, &ret); |
385 | 385 | ||
386 | #ifdef CONFIG_NET_CLS_ACT | 386 | #ifdef CONFIG_NET_CLS_ACT |