diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2016-08-13 22:34:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-17 19:27:51 -0400 |
commit | 824a7e8863b3eb283343f891b11a782b4ec0d0de (patch) | |
tree | 00da5bea6f8fbd3f2e56f350c35097d78996f5fb /net/sched | |
parent | f07fed82ad7994cc4d779ee79bdf7a46848c4b8f (diff) | |
download | lwn-824a7e8863b3eb283343f891b11a782b4ec0d0de.tar.gz lwn-824a7e8863b3eb283343f891b11a782b4ec0d0de.zip |
net_sched: remove an unnecessary list_del()
This list_del() for tc action is not needed actually,
because we only use this list to chain bulk operations,
therefore should not be carried for latter operations.
Fixes: ec0595cc4495 ("net_sched: get rid of struct tcf_common")
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_api.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index cce6986d5bc2..b4c7be38b632 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -64,7 +64,6 @@ int __tcf_hash_release(struct tc_action *p, bool bind, bool strict) if (p->tcfa_bindcnt <= 0 && p->tcfa_refcnt <= 0) { if (p->ops->cleanup) p->ops->cleanup(p, bind); - list_del(&p->list); tcf_hash_destroy(p->hinfo, p); ret = ACT_P_DELETED; } |