Skip to content

Commit 36e4044

Browse files
committed
drivers/eth_nxp_enet_qos: Avoid compiler warnings from un-used values
It looks like the fetches from the device are required to clear status, but the mac_interrupts and mac_rx_tx_status values are never used. Avoid compiler warnings by adding references using a (void) cast. Signed-off-by: Keith Packard <[email protected]>
1 parent 40433c8 commit 36e4044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ static void eth_nxp_enet_qos_mac_isr(const struct device *dev)
293293
uint32_t dma_interrupts = base->DMA_INTERRUPT_STATUS;
294294
uint32_t dma_ch0_interrupts = base->DMA_CH[0].DMA_CHX_STAT;
295295

296+
(void) mac_interrupts;
297+
(void) mac_rx_tx_status;
296298
/* clear pending bits except RBU
297299
* handle the receive underrun in the worker
298300
*/

0 commit comments

Comments
 (0)