summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-27 15:20:14 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-27 15:20:14 +0000
commit6b129f2aa26c749c24c3794997ea4375c97e666f (patch)
tree82434918019f0a5422cc20decc054a426ed59002 /sys/arch/vax
parentd60eb5cd3d7307636f36ec3e7f5fa862c532cdee (diff)
arp_ifinit() is no longer needed.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/if/if_de.c9
-rw-r--r--sys/arch/vax/if/if_qe.c10
-rw-r--r--sys/arch/vax/if/sgec.c10
3 files changed, 5 insertions, 24 deletions
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: