summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-26 01:50:02 +0100
committerDavid S. Miller <davem@davemloft.net>2008-11-26 01:50:02 +0100
commitdc0a0011cfa8ff01b86859006f4db3656c9a896b (patch)
treecd77c3bff690a8126ce5a1581d7205365a2d56fb /net/sched
parentsunrpc: fix warning in net/sunrpc/xprtrdma/svc_rdma_transport.c (diff)
downloadlinux-dc0a0011cfa8ff01b86859006f4db3656c9a896b.tar.xz
linux-dc0a0011cfa8ff01b86859006f4db3656c9a896b.zip
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')
-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
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) {