]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: cls_u32: simplify the hell out u32_delete() emptiness check
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Oct 2018 10:22:44 +0000 (06:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:33:35 +0000 (10:33 -0700)
commit3b842be26ddaf3d0963ca69f02cba77d4655e7d8
treeed3755ff391624d1371be5e97db558c394bbe0f1
parent82aeb355e39abed339420f3d0dbfa8e1675391b3
net: sched: cls_u32: simplify the hell out u32_delete() emptiness check

Now that we have the knode count, we can instantly check if
any hnodes are non-empty.  And that kills the check for extra
references to root hnode - those could happen only if there was
a knode to carry such a link.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c