From 6b129f2aa26c749c24c3794997ea4375c97e666f Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Tue, 27 Oct 2015 15:20:14 +0000 Subject: arp_ifinit() is no longer needed. --- sys/arch/vax/if/if_de.c | 9 +-------- sys/arch/vax/if/if_qe.c | 10 ++-------- sys/arch/vax/if/sgec.c | 10 ++-------- 3 files changed, 5 insertions(+), 24 deletions(-) (limited to 'sys/arch/vax') diff --git a/sys/arch/vax/if/if_de.c b/sys/arch/vax/if/if_de.c index 4691b715c00..b4f6ec9b368 100644 --- a/sys/arch/vax/if/if_de.c +++ b/sys/arch/vax/if/if_de.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_de.c,v 1.30 2015/07/04 17:32:20 miod Exp $ */ +/* $OpenBSD: if_de.c,v 1.31 2015/10/27 15:20:13 mpi Exp $ */ /* $NetBSD: if_de.c,v 1.27 1997/04/19 15:02:29 ragge Exp $ */ /* @@ -562,7 +562,6 @@ deioctl(ifp, cmd, data) u_long cmd; caddr_t data; { - register struct ifaddr *ifa = (struct ifaddr *)data; register struct de_softc *ds = ifp->if_softc; int s, error = 0; @@ -572,12 +571,6 @@ deioctl(ifp, cmd, data) case SIOCSIFADDR: ifp->if_flags |= IFF_UP; deinit(ds); - - switch (ifa->ifa_addr->sa_family) { - case AF_INET: - arp_ifinit(&ds->ds_ac, ifa); - break; - } break; case SIOCSIFFLAGS: diff --git a/sys/arch/vax/if/if_qe.c b/sys/arch/vax/if/if_qe.c index 374909f42cd..120063df86a 100644 --- a/sys/arch/vax/if/if_qe.c +++ b/sys/arch/vax/if/if_qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_qe.c,v 1.35 2015/07/04 10:12:52 dlg Exp $ */ +/* $OpenBSD: if_qe.c,v 1.36 2015/10/27 15:20:13 mpi Exp $ */ /* $NetBSD: if_qe.c,v 1.51 2002/06/08 12:28:37 ragge Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved. @@ -626,7 +626,6 @@ int qeioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct qe_softc *sc = ifp->if_softc; - struct ifaddr *ifa = (struct ifaddr *)data; int s, error = 0; s = splnet(); @@ -634,12 +633,7 @@ qeioctl(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: - qeinit(sc); - arp_ifinit(&sc->sc_ac, ifa); - break; - } + qeinit(sc); break; case SIOCSIFFLAGS: diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c index 9431e050089..4b4fce4a1f2 100644 --- a/sys/arch/vax/if/sgec.c +++ b/sys/arch/vax/if/sgec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sgec.c,v 1.29 2015/06/24 09:40:54 mpi Exp $ */ +/* $OpenBSD: sgec.c,v 1.30 2015/10/27 15:20:13 mpi Exp $ */ /* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved. @@ -618,7 +618,6 @@ zeioctl(ifp, cmd, data) caddr_t data; { struct ze_softc *sc = ifp->if_softc; - struct ifaddr *ifa = (struct ifaddr *)data; struct ifreq *ifr = (struct ifreq *)data; int s, error = 0; @@ -627,12 +626,7 @@ zeioctl(ifp, cmd, data) switch (cmd) { case SIOCSIFADDR: ifp->if_flags |= IFF_UP; - switch(ifa->ifa_addr->sa_family) { - case AF_INET: - zeinit(sc); - arp_ifinit(&sc->sc_ac, ifa); - break; - } + zeinit(sc); break; case SIOCSIFMEDIA: -- cgit v1.2.3