summaryrefslogtreecommitdiffstats
path: root/sys/arch/octeon/dev/if_cnmac.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-10-25 13:22:09 +0000
committermpi <mpi@openbsd.org>2015-10-25 13:22:09 +0000
commit82ab6bfd1d45b6e718818eff2e091ec8c3341c80 (patch)
treec4015aef6ea25b1f6a5db591cdf71c6f62c6cbbf /sys/arch/octeon/dev/if_cnmac.c
parentarp_ifinit() is no longer needed and almost dead. (diff)
downloadwireguard-openbsd-82ab6bfd1d45b6e718818eff2e091ec8c3341c80.tar.xz
wireguard-openbsd-82ab6bfd1d45b6e718818eff2e091ec8c3341c80.zip
arp_ifinit() is no longer needed.
Diffstat (limited to 'sys/arch/octeon/dev/if_cnmac.c')
-rw-r--r--sys/arch/octeon/dev/if_cnmac.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c
index c2403cf0fcb..a94cddb28f4 100644
--- a/sys/arch/octeon/dev/if_cnmac.c
+++ b/sys/arch/octeon/dev/if_cnmac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cnmac.c,v 1.26 2015/10/24 05:35:42 visa Exp $ */
+/* $OpenBSD: if_cnmac.c,v 1.27 2015/10/25 13:22:09 mpi Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -702,7 +702,6 @@ int
octeon_eth_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct octeon_eth_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *)data;
struct ifreq *ifr = (struct ifreq *)data;
int s, error = 0;
@@ -713,8 +712,6 @@ octeon_eth_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
octeon_eth_init(ifp);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->sc_arpcom, ifa);
break;
case SIOCSIFFLAGS: