aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 19:50:02 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 19:50:02 -0500
commitdc0a0011cfa8ff01b86859006f4db3656c9a896b (patch)
treecd77c3bff690a8126ce5a1581d7205365a2d56fb /net/sched/sch_hfsc.c
parented72b9c6e0ec4e66dd16b7ca212845e1eb985d65 (diff)
pkt_sched: fix warning in net/sched/sch_hfsc.c
this warning: net/sched/sch_hfsc.c: In function ‘hfsc_enqueue’: net/sched/sch_hfsc.c:1577: warning: ‘err’ may be used uninitialized in this function triggers because GCC does not recognize the (correct) error flow between hfsc_classify(), 'cl' and 'err'. Annotate it. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index 51dd3f401623..613179c9969c 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1563,7 +1563,7 @@ static int
1563hfsc_enqueue(struct sk_buff *skb, struct Qdisc *sch) 1563hfsc_enqueue(struct sk_buff *skb, struct Qdisc *sch)
1564{ 1564{
1565 struct hfsc_class *cl; 1565 struct hfsc_class *cl;
1566 int err; 1566 int uninitialized_var(err);
1567 1567
1568 cl = hfsc_classify(skb, sch, &err); 1568 cl = hfsc_classify(skb, sch, &err);
1569 if (cl == NULL) { 1569 if (cl == NULL) {