Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/newsmips/apbus Eliminate use of IFF_OACTIVE, take 2...



details:   https://anonhg.NetBSD.org/src/rev/1986feed2a8f
branches:  trunk
changeset: 370129:1986feed2a8f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 18 12:49:34 2022 +0000

description:
Eliminate use of IFF_OACTIVE, take 2.  (Not sure what happened there.)

diffstat:

 sys/arch/newsmips/apbus/if_sn.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 59d5f9defae4 -r 1986feed2a8f sys/arch/newsmips/apbus/if_sn.c
--- a/sys/arch/newsmips/apbus/if_sn.c   Sun Sep 18 12:39:26 2022 +0000
+++ b/sys/arch/newsmips/apbus/if_sn.c   Sun Sep 18 12:49:34 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_sn.c,v 1.51 2022/09/18 12:48:03 thorpej Exp $       */
+/*     $NetBSD: if_sn.c,v 1.52 2022/09/18 12:49:34 thorpej Exp $       */
 
 /*
  * National Semiconductor  DP8393X SONIC Driver
@@ -16,7 +16,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sn.c,v 1.51 2022/09/18 12:48:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sn.c,v 1.52 2022/09/18 12:49:34 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -430,7 +430,6 @@
 
        /* flag interface as "running" */
        sc->sc_if.if_flags |= IFF_RUNNING;
-       sc->sc_if.if_flags &= ~IFF_OACTIVE;
 
        splx(s);
        return 0;
@@ -904,8 +903,6 @@
                }
 #endif /* SNDEBUG */
 
-               ifp->if_flags &= ~IFF_OACTIVE;
-
                if (mtd->mtd_mbuf != 0) {
                        m_freem(mtd->mtd_mbuf);
                        mtd->mtd_mbuf = 0;



Home | Main Index | Thread Index | Old Index