Skip to content

Commit e0e2b35

Browse files
dcarattidavem330
authored andcommitted
net/sched: actions: remove unused 'order'
after commit 4097e9d ("net: sched: don't use tc_action->order during action dump"), 'act->order' is initialized but then it's no more read, so we can just remove this member of struct tc_action. CC: Ivan Vecera <[email protected]> Signed-off-by: Davide Caratti <[email protected]> Acked-by: Jiri Pirko <[email protected]> Reviewed-by: Ivan Vecera <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4e4637b commit e0e2b35

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

include/net/act_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct tc_action_ops;
2323
struct tc_action {
2424
const struct tc_action_ops *ops;
2525
__u32 type; /* for backward compat(TCA_OLD_COMPAT) */
26-
__u32 order;
2726
struct tcf_idrinfo *idrinfo;
2827

2928
u32 tcfa_index;

net/sched/act_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,6 @@ int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
10031003
err = PTR_ERR(act);
10041004
goto err;
10051005
}
1006-
act->order = i;
10071006
sz += tcf_action_fill_size(act);
10081007
/* Start from index 0 */
10091008
actions[i - 1] = act;

0 commit comments

Comments
 (0)