Commit 6256fbfd authored by Kurt Kanzenbach's avatar Kurt Kanzenbach Committed by Paolo Abeni

net: stmmac: Simplify mtl IRQ status checking

Commit 8a7cb245 ("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's avatarKurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20240208-stmmac_irq-v1-1-8bab236026d4@linutronix.deSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent a3522a2e
......@@ -6061,10 +6061,8 @@ static void stmmac_common_interrupt(struct stmmac_priv *priv)
priv->tx_path_in_lpi_mode = false;
}
for (queue = 0; queue < queues_count; queue++) {
status = stmmac_host_mtl_irq_status(priv, priv->hw,
queue);
}
for (queue = 0; queue < queues_count; queue++)
stmmac_host_mtl_irq_status(priv, priv->hw, queue);
/* PCS link status */
if (priv->hw->pcs &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment