Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Eliminate use of IFF_OACTIVE. (This driver never...
details: https://anonhg.NetBSD.org/src/rev/7e5d29cfdf47
branches: trunk
changeset: 370149:7e5d29cfdf47
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Sep 18 17:21:18 2022 +0000
description:
Eliminate use of IFF_OACTIVE. (This driver never even set it.)
diffstat:
sys/dev/ic/cs89x0.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r e27195b6bae8 -r 7e5d29cfdf47 sys/dev/ic/cs89x0.c
--- a/sys/dev/ic/cs89x0.c Sun Sep 18 17:18:19 2022 +0000
+++ b/sys/dev/ic/cs89x0.c Sun Sep 18 17:21:18 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cs89x0.c,v 1.51 2021/07/31 20:29:37 andvar Exp $ */
+/* $NetBSD: cs89x0.c,v 1.52 2022/09/18 17:21:18 thorpej Exp $ */
/*
* Copyright (c) 2004 Christopher Gilbert
@@ -212,7 +212,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.51 2021/07/31 20:29:37 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.52 2022/09/18 17:21:18 thorpej Exp $");
#include "opt_inet.h"
@@ -1191,7 +1191,6 @@
/* Mark the interface as running */
sc->sc_ethercom.ec_if.if_flags |= IFF_RUNNING;
- sc->sc_ethercom.ec_if.if_flags &= ~IFF_OACTIVE;
sc->sc_ethercom.ec_if.if_timer = 0;
/* Assume we have carrier until we are told otherwise. */
@@ -1870,7 +1869,7 @@
sc = ifp->if_softc;
/* Check that the interface is up and running */
- if ((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) != IFF_RUNNING)
+ if ((ifp->if_flags & IFF_RUNNING) == 0)
return;
/* Don't interrupt a transmission in progress */
@@ -2131,7 +2130,7 @@
if (disable)
cs_disable(sc);
- ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
+ ifp->if_flags &= ~IFF_RUNNING;
}
int
Home |
Main Index |
Thread Index |
Old Index