summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorJiri Pirko2017-08-04 14:28:57 +0200
committerDavid S. Miller2017-08-04 20:21:23 +0200
commit4ebc1e3cfcd8778e2150bdb799b19e85348b8efa (patch)
tree1f62e37970989aaf7e5ededdd81404d34cb05dd7 /net/sched/cls_basic.c
parentnet: sched: sch_atm: use Qdisc_class_common structure (diff)
downloadkernel-qcow2-linux-4ebc1e3cfcd8778e2150bdb799b19e85348b8efa.tar.gz
kernel-qcow2-linux-4ebc1e3cfcd8778e2150bdb799b19e85348b8efa.tar.xz
kernel-qcow2-linux-4ebc1e3cfcd8778e2150bdb799b19e85348b8efa.zip
net: sched: remove unneeded tcf_em_tree_change
Since tcf_em_tree_validate could be always called on a newly created filter, there is no need for this change function. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_basic.c')
-rw-r--r--net/sched/cls_basic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c
index c4fd63a068f9..979cd2683b46 100644
--- a/net/sched/cls_basic.c
+++ b/net/sched/cls_basic.c
@@ -130,7 +130,6 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp,
{
int err;
struct tcf_exts e;
- struct tcf_ematch_tree t;
err = tcf_exts_init(&e, TCA_BASIC_ACT, TCA_BASIC_POLICE);
if (err < 0)
@@ -139,7 +138,7 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp,
if (err < 0)
goto errout;
- err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &t);
+ err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &f->ematches);
if (err < 0)
goto errout;
@@ -149,7 +148,6 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp,
}
tcf_exts_change(tp, &f->exts, &e);
- tcf_em_tree_change(tp, &f->ematches, &t);
f->tp = tp;
return 0;