mirror of https://github.com/torvalds/linux.git
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:
parent
c34604572e
commit
a0e8c9a506
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue