]> err.no Git - linux-2.6/commitdiff
[PKT_SCHED]: sch_cbq.c: Shut up uninitialized variable warning
authorSatyam Sharma <satyam@infradead.org>
Sun, 16 Sep 2007 21:54:05 +0000 (14:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2007 21:54:05 +0000 (14:54 -0700)
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>
net/sched/sch_cbq.c

index e38c2839b25ca9a149ad45291cfd391a129b987a..cbef3bbfc20f15e84c36cb6dafd9f2e08319e20d 100644 (file)
@@ -380,7 +380,7 @@ cbq_enqueue(struct sk_buff *skb, struct Qdisc *sch)
 {
        struct cbq_sched_data *q = qdisc_priv(sch);
        int len = skb->len;
-       int ret;
+       int uninitialized_var(ret);
        struct cbq_class *cl = cbq_classify(skb, sch, &ret);
 
 #ifdef CONFIG_NET_CLS_ACT