diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 16:50:02 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 16:50:02 -0800 |
commit | dc0a0011cfa8ff01b86859006f4db3656c9a896b (patch) | |
tree | cd77c3bff690a8126ce5a1581d7205365a2d56fb /net/sched/sch_hfsc.c | |
parent | ed72b9c6e0ec4e66dd16b7ca212845e1eb985d65 (diff) | |
download | op-kernel-dev-dc0a0011cfa8ff01b86859006f4db3656c9a896b.zip op-kernel-dev-dc0a0011cfa8ff01b86859006f4db3656c9a896b.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 51dd3f4..613179c9 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c @@ -1563,7 +1563,7 @@ static int hfsc_enqueue(struct sk_buff *skb, struct Qdisc *sch) { struct hfsc_class *cl; - int err; + int uninitialized_var(err); cl = hfsc_classify(skb, sch, &err); if (cl == NULL) { |