Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Remove "#ifdef INET" code. Por que? Because op...



details:   https://anonhg.NetBSD.org/src/rev/252c13b9e671
branches:  trunk
changeset: 340162:252c13b9e671
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Aug 24 23:52:18 2015 +0000

description:
Remove "#ifdef INET" code.  Por que?  Because opt_inet.h was not included
and "#ifdef INET" was just a fancy way of saying "#ifndef NetBSD".

diffstat:

 sys/dev/pci/if_iwn.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 13dc93667b00 -r 252c13b9e671 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Mon Aug 24 23:32:07 2015 +0000
+++ b/sys/dev/pci/if_iwn.c      Mon Aug 24 23:52:18 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwn.c,v 1.74 2014/11/09 14:40:54 nonaka Exp $       */
+/*     $NetBSD: if_iwn.c,v 1.75 2015/08/24 23:52:18 pooka Exp $        */
 /*     $OpenBSD: if_iwn.c,v 1.135 2014/09/10 07:22:09 dcoppa Exp $     */
 
 /*-
@@ -22,7 +22,7 @@
  * adapters.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.74 2014/11/09 14:40:54 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.75 2015/08/24 23:52:18 pooka Exp $");
 
 #define IWN_USE_RBUF   /* Use local storage for RX */
 #undef IWN_HWCRYPTO    /* XXX does not even compile yet */
@@ -3188,11 +3188,6 @@
        switch (cmd) {
        case SIOCSIFADDR:
                ifp->if_flags |= IFF_UP;
-#ifdef INET
-               struct ifaddr *ifa = (struct ifaddr *)data;
-               if (ifa->ifa_addr->sa_family == AF_INET)
-                       arp_ifinit(&ic->ic_ac, ifa);
-#endif
                /* FALLTHROUGH */
        case SIOCSIFFLAGS:
                /* XXX Added as it is in every NetBSD driver */



Home | Main Index | Thread Index | Old Index