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
This commit is contained in:
Warner Losh 2022-04-05 13:09:27 -06:00
parent 6e5056a903
commit 5035b5f5b0

View File

@ -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;