From 46adc7fad3c92bbc3e9eca3b569578bc18dc6e84 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 6 Apr 2022 16:45:28 -0700 Subject: [PATCH] axgbe: Remove unused variable in axgbe_msix_que. Keep the register read just in case though it seems possible it is not needed as the function later clears specific interrupts via a write to the same register. --- sys/dev/axgbe/if_axgbe_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c index aa880d9747ee..9ac640bac846 100644 --- a/sys/dev/axgbe/if_axgbe_pci.c +++ b/sys/dev/axgbe/if_axgbe_pci.c @@ -2042,7 +2042,7 @@ axgbe_msix_que(void *arg) { struct xgbe_channel *channel = (struct xgbe_channel *)arg; struct xgbe_prv_data *pdata = channel->pdata; - unsigned int dma_ch_isr, dma_status; + unsigned int dma_status; axgbe_printf(1, "%s: Channel: %d SR 0x%04x DSR 0x%04x IER:0x%04x D_ISR:0x%04x M_ISR:0x%04x\n", __func__, channel->queue_index, @@ -2052,7 +2052,7 @@ axgbe_msix_que(void *arg) XGMAC_IOREAD(pdata, DMA_ISR), XGMAC_IOREAD(pdata, MAC_ISR)); - dma_ch_isr = XGMAC_DMA_IOREAD(channel, DMA_CH_SR); + (void)XGMAC_DMA_IOREAD(channel, DMA_CH_SR); /* Disable Tx and Rx channel interrupts */ xgbe_disable_rx_tx_int(pdata, channel);