Skip to content

Commit

Permalink
net_sched: remove unused parameter for tcf_action_delete()
Browse files Browse the repository at this point in the history
Fixes: 16af606 ("net: sched: implement reference counted action release")
Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Cong Wang authored and David S. Miller committed Aug 21, 2018
1 parent 97a3f84 commit b144e7e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,8 +1177,7 @@ static int tca_action_flush(struct net *net, struct nlattr *nla,
return err;
}

static int tcf_action_delete(struct net *net, struct tc_action *actions[],
struct netlink_ext_ack *extack)
static int tcf_action_delete(struct net *net, struct tc_action *actions[])
{
int i;

Expand Down Expand Up @@ -1227,7 +1226,7 @@ tcf_del_notify(struct net *net, struct nlmsghdr *n, struct tc_action *actions[],
}

/* now do the delete */
ret = tcf_action_delete(net, actions, extack);
ret = tcf_action_delete(net, actions);
if (ret < 0) {
NL_SET_ERR_MSG(extack, "Failed to delete TC action");
kfree_skb(skb);
Expand Down

0 comments on commit b144e7e

Please sign in to comment.