From 0c79af6ee6e79a0199834ca49fefdc82683d72bb Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 25 Oct 2015 13:04:29 +0000 Subject: arp_ifinit() is no longer needed. --- sys/dev/pci/if_ipw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/dev/pci/if_ipw.c') diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 0bdf8ce88bf..4c8a496c8b9 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.109 2015/09/01 07:09:55 deraadt Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.110 2015/10/25 13:04:28 mpi Exp $ */ /*- * Copyright (c) 2004-2008 @@ -1358,7 +1358,6 @@ ipw_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct ipw_softc *sc = ifp->if_softc; struct ieee80211com *ic = &sc->sc_ic; - struct ifaddr *ifa; struct ifreq *ifr; int s, error = 0; @@ -1377,10 +1376,7 @@ ipw_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) switch (cmd) { case SIOCSIFADDR: - ifa = (struct ifaddr *)data; ifp->if_flags |= IFF_UP; - if (ifa->ifa_addr->sa_family == AF_INET) - arp_ifinit(&ic->ic_ac, ifa); /* FALLTHROUGH */ case SIOCSIFFLAGS: if (ifp->if_flags & IFF_UP) { -- cgit v1.2.3