summaryrefslogtreecommitdiff
path: root/net/sched/sch_sfq.c
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@gmail.com>2008-12-21 20:14:48 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-21 20:14:48 -0800
commit7f3ff4f63f76c2702da6041d2da5eb30fac407f6 (patch)
tree0be86d18da3a4c4f123b38dcdc9c25b606cabbb1 /net/sched/sch_sfq.c
parentbfb8cc31b11ccaf7cd55fd9e0f4794f82527948f (diff)
downloadlwn-7f3ff4f63f76c2702da6041d2da5eb30fac407f6.tar.gz
lwn-7f3ff4f63f76c2702da6041d2da5eb30fac407f6.zip
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 <jarkao2@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_sfq.c')
-rw-r--r--net/sched/sch_sfq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c
index ab8cfee3c9ce..f3965df00559 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) {