mpls: remove test against ipv6_stub

ipv6_stub is never NULL, let's remove this test.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260228175715.1195536-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Eric Dumazet 2026-02-28 17:57:15 +00:00 committed by Jakub Kicinski
parent c34604572e
commit a0e8c9a506
1 changed files with 0 additions and 3 deletions

View File

@ -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);