Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Make bge_detaching a bool. NFC.



details:   https://anonhg.NetBSD.org/src/rev/8f7e51118370
branches:  trunk
changeset: 369460:8f7e51118370
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Aug 19 07:52:22 2022 +0000

description:
Make bge_detaching a bool. NFC.

diffstat:

 sys/dev/pci/if_bge.c    |  6 +++---
 sys/dev/pci/if_bgevar.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r aad392e38f3d -r 8f7e51118370 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Fri Aug 19 07:48:43 2022 +0000
+++ b/sys/dev/pci/if_bge.c      Fri Aug 19 07:52:22 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.379 2022/08/19 07:48:43 skrll Exp $       */
+/*     $NetBSD: if_bge.c,v 1.380 2022/08/19 07:52:22 skrll Exp $       */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.379 2022/08/19 07:48:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.380 2022/08/19 07:52:22 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -6134,7 +6134,7 @@
        KASSERT(mutex_owned(sc->sc_core_lock));
 
        if (disable) {
-               sc->bge_detaching = 1;
+               sc->bge_detaching = true;
                callout_halt(&sc->bge_timeout, NULL);
        } else
                callout_stop(&sc->bge_timeout);
diff -r aad392e38f3d -r 8f7e51118370 sys/dev/pci/if_bgevar.h
--- a/sys/dev/pci/if_bgevar.h   Fri Aug 19 07:48:43 2022 +0000
+++ b/sys/dev/pci/if_bgevar.h   Fri Aug 19 07:52:22 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bgevar.h,v 1.35 2022/08/19 07:48:43 skrll Exp $     */
+/*     $NetBSD: if_bgevar.h,v 1.36 2022/08/19 07:52:22 skrll Exp $     */
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -350,7 +350,7 @@
        int                     bge_txcnt;
        struct callout          bge_timeout;
        int                     bge_pending_rxintr_change;
-       int                     bge_detaching;
+       bool                    bge_detaching;
        SLIST_HEAD(, txdmamap_pool_entry) txdma_list;
        struct txdmamap_pool_entry *txdma[BGE_TX_RING_CNT];
 



Home | Main Index | Thread Index | Old Index