aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-06 23:45:28 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-06 23:45:28 +0000
commit583df2db5cf4caffbae903bbb05abeb11707838d (patch)
treed56262311a88d6d88d063507d4a05823ca1341ff
parent9b0eb55048e6294c00db70f8ebecf18c1c3c1dbe (diff)
downloadsrc-583df2db5cf4caffbae903bbb05abeb11707838d.tar.gz
src-583df2db5cf4caffbae903bbb05abeb11707838d.zip
bxe: Quiet set but not used warnings.
Comment out other references to more_tx since the only use is commented out. Remove unused is_parity variable.
-rw-r--r--sys/dev/bxe/bxe.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c
index b3bae94198b0..e30c217e63ea 100644
--- a/sys/dev/bxe/bxe.c
+++ b/sys/dev/bxe/bxe.c
@@ -8688,7 +8688,7 @@ bxe_handle_fp_tq(void *context,
{
struct bxe_fastpath *fp = (struct bxe_fastpath *)context;
struct bxe_softc *sc = fp->sc;
- uint8_t more_tx = FALSE;
+ /* uint8_t more_tx = FALSE; */
uint8_t more_rx = FALSE;
BLOGD(sc, DBG_INTR, "---> FP TASK QUEUE (%d) <---\n", fp->index);
@@ -8712,7 +8712,7 @@ bxe_handle_fp_tq(void *context,
/* fp->txdata[cos] */
if (bxe_has_tx_work(fp)) {
BXE_FP_TX_LOCK(fp);
- more_tx = bxe_txeof(sc, fp);
+ /* more_tx = */ bxe_txeof(sc, fp);
BXE_FP_TX_UNLOCK(fp);
}
@@ -8734,7 +8734,7 @@ static void
bxe_task_fp(struct bxe_fastpath *fp)
{
struct bxe_softc *sc = fp->sc;
- uint8_t more_tx = FALSE;
+ /* uint8_t more_tx = FALSE; */
uint8_t more_rx = FALSE;
BLOGD(sc, DBG_INTR, "---> FP TASK ISR (%d) <---\n", fp->index);
@@ -8746,7 +8746,7 @@ bxe_task_fp(struct bxe_fastpath *fp)
/* fp->txdata[cos] */
if (bxe_has_tx_work(fp)) {
BXE_FP_TX_LOCK(fp);
- more_tx = bxe_txeof(sc, fp);
+ /* more_tx = */ bxe_txeof(sc, fp);
BXE_FP_TX_UNLOCK(fp);
}
@@ -12355,7 +12355,6 @@ bxe_parity_recover(struct bxe_softc *sc)
{
uint8_t global = FALSE;
uint32_t error_recovered, error_unrecovered;
- bool is_parity;
if ((sc->recovery_state == BXE_RECOVERY_FAILED) &&
@@ -12374,7 +12373,7 @@ bxe_parity_recover(struct bxe_softc *sc)
switch(sc->recovery_state) {
case BXE_RECOVERY_INIT:
- is_parity = bxe_chk_parity_attn(sc, &global, FALSE);
+ bxe_chk_parity_attn(sc, &global, FALSE);
if ((CHIP_PORT_MODE(sc) == CHIP_4_PORT_MODE) ||
(sc->error_status & BXE_ERR_MCP_ASSERT) ||