summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-24 09:30:16 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-24 09:30:16 +0000
commitb9e50a925c5ef471f7ec5d53d9c33eab8b44fed3 (patch)
treee30bdcba1473af3e0a7b7cba007858e14d3ca6dd /sys/netinet6/in6.c
parentce35e7b414b6d4b2ed03c827c8aaa5b68663dc57 (diff)
Remove some more tests checking for a non-NULL `ifp->if_ioctl'.
if_attach() enforces it is properly defined.
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 351b3f020c6..89d2ecc705b 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.214 2017/10/24 08:57:10 mpi Exp $ */
+/* $OpenBSD: in6.c,v 1.215 2017/10/24 09:30:15 mpi Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
@@ -945,7 +945,6 @@ in6_ifinit(struct ifnet *ifp, struct in6_ifaddr *ia6, int newhost)
if ((ifacount <= 1 || ifp->if_type == IFT_CARP ||
(ifp->if_flags & (IFF_LOOPBACK|IFF_POINTOPOINT))) &&
- ifp->if_ioctl &&
(error = (*ifp->if_ioctl)(ifp, SIOCSIFADDR, (caddr_t)ia6))) {
return (error);
}