From: Jarek Poplawski Date: Mon, 22 Dec 2008 04:14:48 +0000 (-0800) Subject: pkt_sched: Annotate uninitialized var in sfq_enqueue() X-Git-Tag: v2.6.29-rc1~581^2~101 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7f3ff4f63f76c2702da6041d2da5eb30fac407f6;p=linux-2.6-omap-h63xx.git pkt_sched: Annotate uninitialized var in sfq_enqueue() Some gcc versions warn that ret may be used uninitialized in sfq_enqueue(). It's a false positive, so let's annotate this. Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index ab8cfee3c9c..f3965df0055 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c @@ -281,7 +281,7 @@ sfq_enqueue(struct sk_buff *skb, struct Qdisc *sch) struct sfq_sched_data *q = qdisc_priv(sch); unsigned int hash; sfq_index x; - int ret; + int uninitialized_var(ret); hash = sfq_classify(skb, sch, &ret); if (hash == 0) {