net/sched: remove tcf_idr_cleanup()
authorDavide Caratti <dcaratti@redhat.com>
Fri, 23 Mar 2018 18:09:39 +0000 (19:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Mar 2018 01:52:19 +0000 (21:52 -0400)
tcf_idr_cleanup() is no more used, so remove it.

Suggested-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
net/sched/act_api.c

index e0a9c2003b247cdaaee7a8d01fb3a20eb519e932..9e59ebfded625426c2c3764225d58081b704cf0a 100644 (file)
@@ -149,7 +149,6 @@ bool tcf_idr_check(struct tc_action_net *tn, u32 index, struct tc_action **a,
 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
                   struct tc_action **a, const struct tc_action_ops *ops,
                   int bind, bool cpustats);
-void tcf_idr_cleanup(struct tc_action *a, struct nlattr *est);
 void tcf_idr_insert(struct tc_action_net *tn, struct tc_action *a);
 
 int __tcf_idr_release(struct tc_action *a, bool bind, bool strict);
index 57cf37145282b64a4261d4290bbd671fc5e00031..7bd1b964f02172701677056cc75e2ae04f526ea5 100644 (file)
@@ -296,14 +296,6 @@ bool tcf_idr_check(struct tc_action_net *tn, u32 index, struct tc_action **a,
 }
 EXPORT_SYMBOL(tcf_idr_check);
 
-void tcf_idr_cleanup(struct tc_action *a, struct nlattr *est)
-{
-       if (est)
-               gen_kill_estimator(&a->tcfa_rate_est);
-       free_tcf(a);
-}
-EXPORT_SYMBOL(tcf_idr_cleanup);
-
 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
                   struct tc_action **a, const struct tc_action_ops *ops,
                   int bind, bool cpustats)