mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
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>
This commit is contained in:
parent
0c4e4020f0
commit
6459082a3c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user