qdisc: basic classifier - remove unnecessary initialization
authorstephen hemminger <stephen@networkplumber.org>
Fri, 27 Sep 2013 00:42:16 +0000 (17:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 19:47:43 +0000 (15:47 -0400)
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>
net/sched/cls_basic.c

index d76a35d0dc85b82ddd9b8f2cc037b1ff0d31f5d5..636d9131d87016a46597af5cadd3471d21e1798f 100644 (file)
@@ -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;