From: Herbert Xu Date: Thu, 8 Mar 2007 00:02:40 +0000 (-0800) Subject: [IPV6]: Do not set IF_READY if device is down X-Git-Tag: v2.6.21-rc4~99^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c7ababbdc647e67e953d153ddf62cbdc9fe3297e;p=linux-2.6-omap-h63xx.git [IPV6]: Do not set IF_READY if device is down Now that we add the IPv6 device at registration time we don't need to set IF_READY in ipv6_add_dev anymore because we will always get a NETDEV_UP event later on should the device ever become ready. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index e16f1bba5df..a7fee6b2732 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -342,10 +342,6 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev) } #endif - if (netif_carrier_ok(dev)) - ndev->if_flags |= IF_READY; - - ipv6_mc_init_dev(ndev); ndev->tstamp = jiffies; #ifdef CONFIG_SYSCTL