Skip to content

Commit

Permalink
eth: mtk: switch to netif_napi_add_tx()
Browse files Browse the repository at this point in the history
netif_napi_add_tx() does not require the weight argument.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed Jul 8, 2022
1 parent 9d542f7 commit c0f5057
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/mediatek/mtk_star_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1653,8 +1653,7 @@ static int mtk_star_probe(struct platform_device *pdev)

netif_napi_add(ndev, &priv->rx_napi, mtk_star_rx_poll,
NAPI_POLL_WEIGHT);
netif_tx_napi_add(ndev, &priv->tx_napi, mtk_star_tx_poll,
NAPI_POLL_WEIGHT);
netif_napi_add_tx(ndev, &priv->tx_napi, mtk_star_tx_poll);

return devm_register_netdev(dev, ndev);
}
Expand Down

0 comments on commit c0f5057

Please sign in to comment.