summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-09-27 02:42:16 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-30 21:47:43 +0200
commit6459082a3cfb2e79a93ffcbfae3b5924ec9cac77 (patch)
treed9b688527b9a99cc468e740dde43a45cb86ee8fa /net/sched/cls_basic.c
parentqdisc: meta return ENOMEM on alloc failure (diff)
downloadlinux-6459082a3cfb2e79a93ffcbfae3b5924ec9cac77.tar.xz
linux-6459082a3cfb2e79a93ffcbfae3b5924ec9cac77.zip
qdisc: basic classifier - remove unnecessary initialization
err is set once, then first code resets it. err = tcf_exts_validate(...) Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Jamal Hadi Salim <hadi@mojatatu.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.c2
1 files changed, 1 insertions, 1 deletions
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;