Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 702beb87 authored by David Miller's avatar David Miller Committed by Linus Torvalds
Browse files

ipv6: Fix warning in addrconf code.



Reported by Linus.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d1671a9c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2315,12 +2315,11 @@ static void init_loopback(struct net_device *dev)
static void addrconf_add_linklocal(struct inet6_dev *idev, struct in6_addr *addr)
{
	struct inet6_ifaddr * ifp;
	struct net *net = dev_net(idev->dev);
	u32 addr_flags = IFA_F_PERMANENT;

#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
	if (idev->cnf.optimistic_dad &&
	    !net->ipv6.devconf_all->forwarding)
	    !dev_net(idev->dev)->ipv6.devconf_all->forwarding)
		addr_flags |= IFA_F_OPTIMISTIC;
#endif