Commit ef724517 authored by Christian Marangi's avatar Christian Marangi Committed by Jakub Kicinski

netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule

Replace drivers that still use napi_schedule_prep/__napi_schedule
with napi_schedule helper as it does the same exact check and call.
Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20231009133754.9834-1-ansuelsmth@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 460c81da
...@@ -755,8 +755,7 @@ static irqreturn_t nixge_rx_irq(int irq, void *_ndev) ...@@ -755,8 +755,7 @@ static irqreturn_t nixge_rx_irq(int irq, void *_ndev)
cr &= ~(XAXIDMA_IRQ_IOC_MASK | XAXIDMA_IRQ_DELAY_MASK); cr &= ~(XAXIDMA_IRQ_IOC_MASK | XAXIDMA_IRQ_DELAY_MASK);
nixge_dma_write_reg(priv, XAXIDMA_RX_CR_OFFSET, cr); nixge_dma_write_reg(priv, XAXIDMA_RX_CR_OFFSET, cr);
if (napi_schedule_prep(&priv->napi)) napi_schedule(&priv->napi);
__napi_schedule(&priv->napi);
goto out; goto out;
} }
if (!(status & XAXIDMA_IRQ_ALL_MASK)) { if (!(status & XAXIDMA_IRQ_ALL_MASK)) {
......
...@@ -930,8 +930,8 @@ static irqreturn_t w5100_interrupt(int irq, void *ndev_instance) ...@@ -930,8 +930,8 @@ static irqreturn_t w5100_interrupt(int irq, void *ndev_instance)
if (priv->ops->may_sleep) if (priv->ops->may_sleep)
queue_work(priv->xfer_wq, &priv->rx_work); queue_work(priv->xfer_wq, &priv->rx_work);
else if (napi_schedule_prep(&priv->napi)) else
__napi_schedule(&priv->napi); napi_schedule(&priv->napi);
} }
return IRQ_HANDLED; return IRQ_HANDLED;
......
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