diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-25 13:13:07 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-25 13:13:07 +0000 |
commit | 4661f328d1c6f50220cc216dc76e777a4841694f (patch) | |
tree | 603995c764bc7777e3ed759cf2d6e1087220aa4b /sys/dev/sbus | |
parent | 8b21cb57a14d51adcbd5b2190a6f83270d62cf39 (diff) |
arp_ifinit() is no longer needed and almost dead.
Diffstat (limited to 'sys/dev/sbus')
-rw-r--r-- | sys/dev/sbus/be.c | 13 | ||||
-rw-r--r-- | sys/dev/sbus/qe.c | 13 |
2 files changed, 4 insertions, 22 deletions
diff --git a/sys/dev/sbus/be.c b/sys/dev/sbus/be.c index c168a44eefa..ee4cbff690e 100644 --- a/sys/dev/sbus/be.c +++ b/sys/dev/sbus/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.34 2015/09/12 10:15:10 miod Exp $ */ +/* $OpenBSD: be.c,v 1.35 2015/10/25 13:13:06 mpi Exp $ */ /* $NetBSD: be.c,v 1.26 2001/03/20 15:39:20 pk Exp $ */ /*- @@ -912,7 +912,6 @@ int beioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct be_softc *sc = ifp->if_softc; - struct ifaddr *ifa = (struct ifaddr *)data; struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; @@ -921,15 +920,7 @@ beioctl(struct ifnet *ifp, u_long cmd, caddr_t data) switch (cmd) { case SIOCSIFADDR: ifp->if_flags |= IFF_UP; - switch (ifa->ifa_addr->sa_family) { - case AF_INET: - beinit(sc); - arp_ifinit(&sc->sc_arpcom, ifa); - break; - default: - beinit(sc); - break; - } + beinit(sc); break; case SIOCSIFFLAGS: diff --git a/sys/dev/sbus/qe.c b/sys/dev/sbus/qe.c index 45426eb421e..e029eda1c55 100644 --- a/sys/dev/sbus/qe.c +++ b/sys/dev/sbus/qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qe.c,v 1.31 2015/09/11 13:02:28 stsp Exp $ */ +/* $OpenBSD: qe.c,v 1.32 2015/10/25 13:13:06 mpi Exp $ */ /* $NetBSD: qe.c,v 1.16 2001/03/30 17:30:18 christos Exp $ */ /*- @@ -884,7 +884,6 @@ qeioctl(ifp, cmd, data) caddr_t data; { struct qe_softc *sc = ifp->if_softc; - struct ifaddr *ifa = (struct ifaddr *)data; struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; @@ -893,15 +892,7 @@ qeioctl(ifp, cmd, data) switch (cmd) { case SIOCSIFADDR: ifp->if_flags |= IFF_UP; - switch (ifa->ifa_addr->sa_family) { - case AF_INET: - qeinit(sc); - arp_ifinit(&sc->sc_arpcom, ifa); - break; - default: - qeinit(sc); - break; - } + qeinit(sc); break; case SIOCSIFFLAGS: |