]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pkt_sched: fix warning in net/sched/sch_hfsc.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 00:50:02 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:50:02 +0000 (16:50 -0800)
commitdc0a0011cfa8ff01b86859006f4db3656c9a896b
treecd77c3bff690a8126ce5a1581d7205365a2d56fb
parented72b9c6e0ec4e66dd16b7ca212845e1eb985d65
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>
net/sched/sch_hfsc.c