summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_run.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-12-22 02:28:51 +0000
committertedu <tedu@openbsd.org>2014-12-22 02:28:51 +0000
commitf79ee556e9e46e9a5a856c2be90b8430b83b910c (patch)
treef2b6ef1d0da7f6fe39086ee700534107c2b455d2 /sys/dev/usb/if_run.c
parentunifdef INET (diff)
downloadwireguard-openbsd-f79ee556e9e46e9a5a856c2be90b8430b83b910c.tar.xz
wireguard-openbsd-f79ee556e9e46e9a5a856c2be90b8430b83b910c.zip
unifdef INET
Diffstat (limited to 'sys/dev/usb/if_run.c')
-rw-r--r--sys/dev/usb/if_run.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c
index f68847352d9..28ac71a5cf9 100644
--- a/sys/dev/usb/if_run.c
+++ b/sys/dev/usb/if_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_run.c,v 1.105 2014/12/19 22:44:59 guenther Exp $ */
+/* $OpenBSD: if_run.c,v 1.106 2014/12/22 02:28:52 tedu Exp $ */
/*-
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2616,10 +2616,8 @@ run_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCSIFADDR:
ifa = (struct ifaddr *)data;
ifp->if_flags |= IFF_UP;
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&ic->ic_ac, ifa);
-#endif
/* FALLTHROUGH */
case SIOCSIFFLAGS:
if (ifp->if_flags & IFF_UP) {