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: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20231009133754.9834-1-ansuelsmth@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
460c81da66
commit
ef724517b5
@ -755,8 +755,7 @@ static irqreturn_t nixge_rx_irq(int irq, void *_ndev)
|
||||
cr &= ~(XAXIDMA_IRQ_IOC_MASK | XAXIDMA_IRQ_DELAY_MASK);
|
||||
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;
|
||||
}
|
||||
if (!(status & XAXIDMA_IRQ_ALL_MASK)) {
|
||||
|
@ -930,8 +930,8 @@ static irqreturn_t w5100_interrupt(int irq, void *ndev_instance)
|
||||
|
||||
if (priv->ops->may_sleep)
|
||||
queue_work(priv->xfer_wq, &priv->rx_work);
|
||||
else if (napi_schedule_prep(&priv->napi))
|
||||
__napi_schedule(&priv->napi);
|
||||
else
|
||||
napi_schedule(&priv->napi);
|
||||
}
|
||||
|
||||
return IRQ_HANDLED;
|
||||
|
Loading…
Reference in New Issue
Block a user