summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-08 12:02:42 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-03-08 12:02:42 +0000
commit75900197ea3563ad8982cb26c3337a5cee3da727 (patch)
tree41e1e9506513e4dd4262e04d6f230efea27542cb /sys/arch/macppc
parent32ccc93181e4ea9624685fa972f99ce1cda42944 (diff)
Do not clear IFF_UP, even in the error path, clearing IFF_RUNNING
is enough. This flag should only be set by the stack, drivers shouldn't mess with it. Discussed with dlg@ and mikeb@, ok mikeb@, stsp@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/dev/if_bm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c
index 4cb561f38dd..348d97400cc 100644
--- a/sys/arch/macppc/dev/if_bm.c
+++ b/sys/arch/macppc/dev/if_bm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bm.c,v 1.41 2017/01/22 10:17:37 dlg Exp $ */
+/* $OpenBSD: if_bm.c,v 1.42 2017/03/08 12:02:41 mpi Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
@@ -595,7 +595,7 @@ bmac_stop(struct bmac_softc *sc)
dbdma_stop(sc->sc_txdma);
dbdma_stop(sc->sc_rxdma);
- ifp->if_flags &= ~(IFF_UP | IFF_RUNNING);
+ ifp->if_flags &= ~IFF_RUNNING;
ifp->if_timer = 0;
splx(s);