Skip to content

Commit

Permalink
ipv6: remove unused function ipv6_inherit_linklocal()
Browse files Browse the repository at this point in the history
It is no longer used after commit e837735
(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>
  • Loading branch information
WANG Cong authored and David S. Miller committed May 5, 2014
1 parent c020b9d commit 07c8e35
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 07c8e35

Please sign in to comment.