pkt_sched: Annotate uninitialized var in sfq_enqueue()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
---
net/sched/sch_sfq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_sfq.c +1 -1
@@ -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 ) {
From: Jarek Poplawski <[email protected]>
Date: Fri, 19 Dec 2008 08:44:07 +0000
Quoted 4 lines
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 <[email protected]>
Applied to net-next-2.6, thanks Jarek.