Skip to content

Commit d9fa17e

Browse files
congwangdavem330
authored andcommitted
act_police: rename tcf_act_police_locate() to tcf_act_police_init()
This function is just ->init(), rename it to make it obvious. 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 95df1b1 commit d9fa17e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

net/sched/act_police.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ static const struct nla_policy police_policy[TCA_POLICE_MAX + 1] = {
115115
[TCA_POLICE_RESULT] = { .type = NLA_U32 },
116116
};
117117

118-
static int tcf_act_police_locate(struct net *net, struct nlattr *nla,
119-
struct nlattr *est, struct tc_action *a,
120-
int ovr, int bind)
118+
static int tcf_act_police_init(struct net *net, struct nlattr *nla,
119+
struct nlattr *est, struct tc_action *a,
120+
int ovr, int bind)
121121
{
122122
int ret = 0, err;
123123
struct nlattr *tb[TCA_POLICE_MAX + 1];
@@ -366,7 +366,7 @@ static struct tc_action_ops act_police_ops = {
366366
.owner = THIS_MODULE,
367367
.act = tcf_act_police,
368368
.dump = tcf_act_police_dump,
369-
.init = tcf_act_police_locate,
369+
.init = tcf_act_police_init,
370370
.walk = tcf_act_police_walker,
371371
.lookup = tcf_police_search,
372372
};

0 commit comments

Comments
 (0)