diff options
Diffstat (limited to 'kernel/net/sched/cls_basic.c')
-rw-r--r-- | kernel/net/sched/cls_basic.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/net/sched/cls_basic.c b/kernel/net/sched/cls_basic.c index 0b8c3ace6..1bf1f4517 100644 --- a/kernel/net/sched/cls_basic.c +++ b/kernel/net/sched/cls_basic.c @@ -62,9 +62,6 @@ static unsigned long basic_get(struct tcf_proto *tp, u32 handle) struct basic_head *head = rtnl_dereference(tp->root); struct basic_filter *f; - if (head == NULL) - return 0UL; - list_for_each_entry(f, &head->flist, link) { if (f->handle == handle) { l = (unsigned long) f; @@ -109,7 +106,6 @@ static bool basic_destroy(struct tcf_proto *tp, bool force) tcf_unbind_filter(tp, &f->res); call_rcu(&f->rcu, basic_delete_filter); } - RCU_INIT_POINTER(tp->root, NULL); kfree_rcu(head, rcu); return true; } |