From: Eric Dumazet Date: Sat, 28 Feb 2026 17:57:15 +0000 (+0000) Subject: mpls: remove test against ipv6_stub X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0e8c9a5060fbdb72fca767164467a3cf2b8fc30;p=thirdparty%2Fkernel%2Flinux.git mpls: remove test against ipv6_stub ipv6_stub is never NULL, let's remove this test. Signed-off-by: Eric Dumazet Reviewed-by: Kuniyuki Iwashima Link: https://patch.msgid.link/20260228175715.1195536-1-edumazet@google.com Signed-off-by: Jakub Kicinski --- diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index ef9e749d5e08f..ae85a7654b1f6 100644 --- a/net/mpls/af_mpls.c +++ b/net/mpls/af_mpls.c @@ -640,9 +640,6 @@ static struct net_device *inet6_fib_lookup_dev(struct net *net, struct dst_entry *dst; struct flowi6 fl6; - if (!ipv6_stub) - return ERR_PTR(-EAFNOSUPPORT); - memset(&fl6, 0, sizeof(fl6)); memcpy(&fl6.daddr, addr, sizeof(struct in6_addr)); dst = ipv6_stub->ipv6_dst_lookup_flow(net, NULL, &fl6, NULL);