ipv6: remove unused function ipv6_inherit_linklocal()
authorWANG Cong <xiyou.wangcong@gmail.com>
Sat, 3 May 2014 00:21:01 +0000 (17:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 19:30:20 +0000 (15:30 -0400)
It is no longer used after commit e837735ec406a347756e
(ip6_tunnel: ensure to always have a link local address).

Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

index fc203db2211a56735a824e1c41130a9503f4ae7f..1ac13c0300b70db08bc941c270ae54d13d81844c 100644 (file)
@@ -2818,18 +2818,6 @@ static void addrconf_gre_config(struct net_device *dev)
 }
 #endif
 
-static inline int
-ipv6_inherit_linklocal(struct inet6_dev *idev, struct net_device *link_dev)
-{
-       struct in6_addr lladdr;
-
-       if (!ipv6_get_lladdr(link_dev, &lladdr, IFA_F_TENTATIVE)) {
-               addrconf_add_linklocal(idev, &lladdr);
-               return 0;
-       }
-       return -1;
-}
-
 static int addrconf_notify(struct notifier_block *this, unsigned long event,
                           void *ptr)
 {