summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-12-04 00:29:30 +0100
committerDavid S. Miller <davem@davemloft.net>2011-12-04 00:29:30 +0100
commit04a6f4417bfd17c3860e8fb37387cb78265ffe44 (patch)
tree510ac1d7b69dc5ebcc0ab53130442274f70e3652 /include
parentipv6: Various cleanups in route.c (diff)
downloadlinux-04a6f4417bfd17c3860e8fb37387cb78265ffe44.tar.xz
linux-04a6f4417bfd17c3860e8fb37387cb78265ffe44.zip
ipv6: Kill ndisc_get_neigh() inline helper.
It's only used in net/ipv6/route.c and the NULL device check is superfluous for all of the existing call sites. Just expand the __ndisc_lookup_errno() call at each location. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/ndisc.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/net/ndisc.h b/include/net/ndisc.h
index 62beeb97c4b1..c977c377c015 100644
--- a/include/net/ndisc.h
+++ b/include/net/ndisc.h
@@ -145,13 +145,4 @@ int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl,
extern void inet6_ifinfo_notify(int event,
struct inet6_dev *idev);
-static inline struct neighbour * ndisc_get_neigh(struct net_device *dev, const struct in6_addr *addr)
-{
-
- if (dev)
- return __neigh_lookup_errno(&nd_tbl, addr, dev);
-
- return ERR_PTR(-ENODEV);
-}
-
#endif