summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_sis.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-10-25 13:04:28 +0000
committermpi <mpi@openbsd.org>2015-10-25 13:04:28 +0000
commit3016beb654e009474f0e00c7d2dc4ca2ec5d6fbd (patch)
tree60638e7e8e6bc88b9ba5e9a3c00a455089d4a1bb /sys/dev/pci/if_sis.c
parentifa is no longer used. (diff)
downloadwireguard-openbsd-3016beb654e009474f0e00c7d2dc4ca2ec5d6fbd.tar.xz
wireguard-openbsd-3016beb654e009474f0e00c7d2dc4ca2ec5d6fbd.zip
arp_ifinit() is no longer needed.
Diffstat (limited to 'sys/dev/pci/if_sis.c')
-rw-r--r--sys/dev/pci/if_sis.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c
index dede1d2062a..0127affd8ce 100644
--- a/sys/dev/pci/if_sis.c
+++ b/sys/dev/pci/if_sis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sis.c,v 1.127 2015/06/24 09:40:54 mpi Exp $ */
+/* $OpenBSD: if_sis.c,v 1.128 2015/10/25 13:04:28 mpi Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -1889,7 +1889,6 @@ int
sis_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
{
struct sis_softc *sc = ifp->if_softc;
- struct ifaddr *ifa = (struct ifaddr *) data;
struct ifreq *ifr = (struct ifreq *) data;
struct mii_data *mii;
int s, error = 0;
@@ -1901,8 +1900,6 @@ sis_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
sis_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS: