From: stephen hemminger Date: Fri, 27 Sep 2013 00:42:16 +0000 (-0700) Subject: qdisc: basic classifier - remove unnecessary initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6459082a3cfb2e79a93ffcbfae3b5924ec9cac77;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git qdisc: basic classifier - remove unnecessary initialization err is set once, then first code resets it. err = tcf_exts_validate(...) Signed-off-by: Stephen Hemminger Acked-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_basic.c b/net/sched/cls_basic.c index d76a35d0dc85..636d9131d870 100644 --- a/net/sched/cls_basic.c +++ b/net/sched/cls_basic.c @@ -137,7 +137,7 @@ static int basic_set_parms(struct net *net, struct tcf_proto *tp, struct nlattr **tb, struct nlattr *est) { - int err = -EINVAL; + int err; struct tcf_exts e; struct tcf_ematch_tree t;