summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2022-09-18 17:21:18 +0000
committerthorpej <thorpej@NetBSD.org>2022-09-18 17:21:18 +0000
commit28feb90379c00cc191ee84e3ddbd2641f09e7733 (patch)
tree47f790685e83f515df11680081c999d4d133623f /sys/dev
parentfd7c863ff1a3fc98487bb740d34ce893dde07b66 (diff)
Eliminate use of IFF_OACTIVE. (This driver never even set it.)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/cs89x0.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/ic/cs89x0.c b/sys/dev/ic/cs89x0.c
index 4e46971cdff..f671fc90d3b 100644
--- a/sys/dev/ic/cs89x0.c
+++ b/sys/dev/ic/cs89x0.c
@@ -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 @@ cs_init(struct ifnet *ifp)
/* 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 @@ cs_start_output(struct ifnet *ifp)
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 @@ cs_stop(struct ifnet *ifp, int disable)
if (disable)
cs_disable(sc);
- ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
+ ifp->if_flags &= ~IFF_RUNNING;
}
int