Patchwork [12/14] sch_htb: Fix a compiler warning in htb_enqueue().

login
register
mail settings
Submitter Jarek Poplawski
Date Oct. 14, 2008, 9:55 a.m.
Message ID <20081014095522.GM10804@ff.dom.local>
Download mbox | patch
Permalink /patch/4437/
State Rejected
Delegated to: David Miller
Headers show

Comments

Jarek Poplawski - Oct. 14, 2008, 9:55 a.m.
Use uninitialized_var(ret) in htb_enqueue() to avoid a compiler warning.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
---
 net/sched/sch_htb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index b2f9e96..c0c83c8 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -551,7 +551,7 @@  static inline void htb_deactivate(struct htb_sched *q, struct htb_class *cl)
 
 static int htb_enqueue(struct sk_buff *skb, struct Qdisc *sch)
 {
-	int ret;
+	int uninitialized_var(ret);
 	struct htb_sched *q = qdisc_priv(sch);
 	struct htb_class *cl = htb_classify(skb, sch, &ret);