Skip to content

Commit 7add83d

Browse files
Mao Wenandavem330
authored andcommitted
net: mediatek: remove set but not used variable 'status'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function mtk_handle_irq: drivers/net/ethernet/mediatek/mtk_eth_soc.c:1951:6: warning: variable status set but not used [-Wunused-but-set-variable] Fixes: 296c912 ("net: ethernet: mediatek: Add MT7628/88 SoC support") Signed-off-by: Mao Wenan <[email protected]> Reviewed-by: Stefan Roese <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 380702e commit 7add83d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/mediatek/mtk_eth_soc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,9 +2120,7 @@ static irqreturn_t mtk_handle_irq_tx(int irq, void *_eth)
21202120
static irqreturn_t mtk_handle_irq(int irq, void *_eth)
21212121
{
21222122
struct mtk_eth *eth = _eth;
2123-
u32 status;
21242123

2125-
status = mtk_r32(eth, MTK_PDMA_INT_STATUS);
21262124
if (mtk_r32(eth, MTK_PDMA_INT_MASK) & MTK_RX_DONE_INT) {
21272125
if (mtk_r32(eth, MTK_PDMA_INT_STATUS) & MTK_RX_DONE_INT)
21282126
mtk_handle_irq_rx(irq, _eth);

0 commit comments

Comments
 (0)