Skip to content

Commit c65100b

Browse files
DerekSnellkartben
authored andcommitted
drivers: ethernet: eth_nxp_enet_qos_mac: remove unused variables
Read MAC registers to clear flags without using variables to avoid compiler warnings. Signed-off-by: Derek Snell <[email protected]>
1 parent ed7f2e0 commit c65100b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ static void eth_nxp_enet_qos_mac_isr(const struct device *dev)
288288
enet_qos_t *base = config->base;
289289

290290
/* cleared on read */
291-
uint32_t mac_interrupts = base->MAC_INTERRUPT_STATUS;
292-
uint32_t mac_rx_tx_status = base->MAC_RX_TX_STATUS;
291+
(void)base->MAC_INTERRUPT_STATUS;
292+
(void)base->MAC_RX_TX_STATUS;
293293
uint32_t dma_interrupts = base->DMA_INTERRUPT_STATUS;
294294
uint32_t dma_ch0_interrupts = base->DMA_CH[0].DMA_CHX_STAT;
295295

0 commit comments

Comments
 (0)