pkt_sched: Fix "parent is root" test in qdisc_create().
authorDavid S. Miller <davem@davemloft.net>
Thu, 7 Aug 2008 06:35:59 +0000 (23:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Aug 2008 06:35:59 +0000 (23:35 -0700)
commitee7af8264dafa0c8c76a8dc596803966c2e29ebc
tree2dfd9066bcf677ec4b1e7becb39d6f8187961385
parent11d46123bfea068a48483f00518d301f452647fb
pkt_sched: Fix "parent is root" test in qdisc_create().

As noticed by Stephen Hemminger, the root qdisc is denoted by
TC_H_ROOT, not zero.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c