]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fib_rules: NULL check before kfree is not needed
authorYueHaibing <yuehaibing@huawei.com>
Mon, 30 Jul 2018 13:07:24 +0000 (21:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2018 16:44:06 +0000 (09:44 -0700)
commit778c4d5c5b96a61c7981ad6d841071326a713845
tree5e6c6f0be8cf899ec9c4d1aaa5578585fb23cc6e
parent86ff73622a013ceac948390e5920b817e101e0b2
fib_rules: NULL check before kfree is not needed

kfree(NULL) is safe,so this removes NULL check before freeing the mem

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/fib_rules.c