Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 19:55:58 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5035b5f5b0ec - main - bwi: Mark write-only variable as __unused
Message-ID:  <202204051955.235Jtw4n052430@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204051955.235Jtw4n052430>