summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axen.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-25 12:11:57 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-25 12:11:57 +0000
commitcb4a2414510d30f85c33547fca38c5120fbc2b02 (patch)
treeabbb0af1102c83790efb41070d81c820e92f3c0b /sys/dev/usb/if_axen.c
parent1259f9f3c0efdab8a370f3c9fbaa9a110b6a9a6c (diff)
arp_ifinit() is no longer needed.
Diffstat (limited to 'sys/dev/usb/if_axen.c')
-rw-r--r--sys/dev/usb/if_axen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/if_axen.c b/sys/dev/usb/if_axen.c
index cb761ab06c0..2e84cbe50b5 100644
--- a/sys/dev/usb/if_axen.c
+++ b/sys/dev/usb/if_axen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axen.c,v 1.16 2015/07/16 00:35:06 yuo Exp $ */
+/* $OpenBSD: if_axen.c,v 1.17 2015/10/25 12:11:56 mpi Exp $ */
/*
* Copyright (c) 2013 Yojiro UO <yuo@openbsd.org>
@@ -1393,7 +1393,6 @@ axen_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct axen_softc *sc = ifp->if_softc;
struct ifreq *ifr = (struct ifreq *)data;
- struct ifaddr *ifa = (struct ifaddr *)data;
int s;
int error = 0;
@@ -1404,8 +1403,6 @@ axen_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
axen_init(sc);
- if (ifa->ifa_addr->sa_family == AF_INET)
- arp_ifinit(&sc->arpcom, ifa);
break;
case SIOCSIFFLAGS: