Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: stmmac: Simplify mtl IRQ status checking

Commit 8a7cb245cf28 ("net: stmmac: Do not enable RX FIFO overflow
interrupts") disabled the RX FIFO overflow interrupts. However, it left the
status variable around, but never checks it.

As stmmac_host_mtl_irq_status() returns only 0 now, the code can be
simplified.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20240208-stmmac_irq-v1-1-8bab236026d4@linutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Kurt Kanzenbach and committed by
Paolo Abeni
6256fbfd a3522a2e

+2 -4
+2 -4
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
··· 6061 6061 priv->tx_path_in_lpi_mode = false; 6062 6062 } 6063 6063 6064 - for (queue = 0; queue < queues_count; queue++) { 6065 - status = stmmac_host_mtl_irq_status(priv, priv->hw, 6066 - queue); 6067 - } 6064 + for (queue = 0; queue < queues_count; queue++) 6065 + stmmac_host_mtl_irq_status(priv, priv->hw, queue); 6068 6066 6069 6067 /* PCS link status */ 6070 6068 if (priv->hw->pcs &&