]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: remove useless NULL to tp->root
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 19 Apr 2017 21:21:22 +0000 (14:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:58:15 +0000 (13:58 -0400)
commit17e3ee162da2bf52b43616d34f595918fd7c5cbd
tree4b6135513c77437534060999f462638e4766beb3
parent78b9bfd7dde319f31e56346fcfe55e09a61661f9
net_sched: remove useless NULL to tp->root

There is no need to NULL tp->root in ->destroy(), since tp is
going to be freed very soon, and existing readers are still
safe to read them.

For cls_route, we always init its tp->root, so it can't be NULL,
we can drop more useless code.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_fw.c
net/sched/cls_route.c
net/sched/cls_rsvp.h