From: Yotam Gigi Date: Tue, 31 Jan 2017 09:33:54 +0000 (+0200) Subject: net/sched: act_psample: Remove unnecessary ASSERT_RTNL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3b20313aef93f9cfda76fec2c05625f88510f18;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/sched: act_psample: Remove unnecessary ASSERT_RTNL The ASSERT_RTNL is not necessary in the init function, as it does not touch any rtnl protected structures, as opposed to the mirred action which does have to hold a net device. Reported-by: Cong Wang Reviewed-by: Jiri Pirko Signed-off-by: Yotam Gigi Signed-off-by: David S. Miller --- diff --git a/net/sched/act_sample.c b/net/sched/act_sample.c index 02b67495829c..0b8217b4763f 100644 --- a/net/sched/act_sample.c +++ b/net/sched/act_sample.c @@ -76,7 +76,6 @@ static int tcf_sample_init(struct net *net, struct nlattr *nla, } s = to_sample(*a); - ASSERT_RTNL(); s->tcf_action = parm->action; s->rate = nla_get_u32(tb[TCA_SAMPLE_RATE]); s->psample_group_num = nla_get_u32(tb[TCA_SAMPLE_PSAMPLE_GROUP]);