git: 46adc7fad3c9 - main - axgbe: Remove unused variable in axgbe_msix_que.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 06 Apr 2022 23:46:16 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=46adc7fad3c92bbc3e9eca3b569578bc18dc6e84

commit 46adc7fad3c92bbc3e9eca3b569578bc18dc6e84
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:28 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:28 +0000

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