Skip to content

Commit

Permalink
qdisc: basic classifier - remove unnecessary initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Sep 30, 2013
1 parent 0c4e402 commit 6459082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/cls_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6459082

Please sign in to comment.