]> git.ipfire.org Git - thirdparty/linux.git/commit
net: Remove unnecessary NULL check for lwtunnel_fill_encap()
authorYue Haibing <yuehaibing@huawei.com>
Tue, 24 Jun 2025 14:00:15 +0000 (22:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Jun 2025 23:52:46 +0000 (16:52 -0700)
commit3b3ccf9ed05e0650273e7086f4d8f495e4b2c850
tree18da2dc67fd7c3573814990f55168c1aba4ef023
parent2855e43c6bb154a9b8e27abda8df364aed574b22
net: Remove unnecessary NULL check for lwtunnel_fill_encap()

lwtunnel_fill_encap() has NULL check and return 0, so no need
to check before call it.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250624140015.3929241-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/fib_semantics.c
net/ipv4/nexthop.c
net/ipv4/route.c
net/ipv6/route.c