]> www.infradead.org Git - users/hch/block.git/commit
net: stmmac: Simplify mtl IRQ status checking
authorKurt Kanzenbach <kurt@linutronix.de>
Thu, 8 Feb 2024 10:35:25 +0000 (11:35 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Feb 2024 09:12:08 +0000 (10:12 +0100)
commit6256fbfd651c8b3653b7f1cfe08e635404e4b51d
treef3dde74bdd37acd0df3f8d5ff37040d17f0eec85
parenta3522a2edb3faf8cb98d38c2a99f5967beef24e2
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c