git: 5035b5f5b0ec - main - bwi: Mark write-only variable as __unused

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 19:55:58 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5035b5f5b0ec3de3f4569fc2c73f516194aae723

commit 5035b5f5b0ec3de3f4569fc2c73f516194aae723
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 19:09:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 19:52:55 +0000

    bwi: Mark write-only variable as __unused
    
    We read TX_STATUS1 to acknowledge a TX interrupt. We don't use this
    value for anything, so mark it as unused. We may be able to eliminate
    this read, but since this hardware is poorly documented and difficult to
    test, I'm leaving the read in place.
    
    Sponsored by:           Netflix
---
 sys/dev/bwi/if_bwi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c
index 340de78d6ae2..1c73581728a0 100644
--- a/sys/dev/bwi/if_bwi.c
+++ b/sys/dev/bwi/if_bwi.c
@@ -3394,7 +3394,7 @@ bwi_txeof(struct bwi_softc *sc)
 {
 
 	for (;;) {
-		uint32_t tx_status0, tx_status1;
+		uint32_t tx_status0, tx_status1 __unused;
 		uint16_t tx_id;
 		int data_txcnt;