Skip to content

Commit 824a7e8

Browse files
congwangdavem330
authored andcommitted
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: ec0595c ("net_sched: get rid of struct tcf_common") Cc: Jamal Hadi Salim <[email protected]> Signed-off-by: Cong Wang <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f07fed8 commit 824a7e8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/sched/act_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ int __tcf_hash_release(struct tc_action *p, bool bind, bool strict)
6464
if (p->tcfa_bindcnt <= 0 && p->tcfa_refcnt <= 0) {
6565
if (p->ops->cleanup)
6666
p->ops->cleanup(p, bind);
67-
list_del(&p->list);
6867
tcf_hash_destroy(p->hinfo, p);
6968
ret = ACT_P_DELETED;
7069
}

0 commit comments

Comments
 (0)