diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index f64aa13811eaeedf8f0040bc9f993ad9e1661eca..0ff3953f64aa7830a07dad9c0873813eb944fdd1 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -924,8 +924,7 @@ int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh, return 0; errout: - if (nlrule) - kfree(nlrule); + kfree(nlrule); rules_ops_put(ops); return err; }