diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-04-28 23:23:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-29 12:56:41 +0200 |
commit | e2a303295d28070cd602f3355d007b9222aa6683 (patch) | |
tree | 8e98bc4c5196f9034cad6bb246e959d34d4669e6 /drivers/net/ethernet/smsc/smsc9420.c | |
parent | eth: remove copies of the NAPI_POLL_WEIGHT define (diff) | |
download | linux-e2a303295d28070cd602f3355d007b9222aa6683.tar.xz linux-e2a303295d28070cd602f3355d007b9222aa6683.zip |
eth: smsc: remove a copy of the NAPI_POLL_WEIGHT define
Defining local versions of NAPI_POLL_WEIGHT with the same
values in the drivers just makes refactoring harder.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc/smsc9420.c')
-rw-r--r-- | drivers/net/ethernet/smsc/smsc9420.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c index d937af18973e..0c68c7f8056d 100644 --- a/drivers/net/ethernet/smsc/smsc9420.c +++ b/drivers/net/ethernet/smsc/smsc9420.c @@ -1585,7 +1585,7 @@ smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id) dev->netdev_ops = &smsc9420_netdev_ops; dev->ethtool_ops = &smsc9420_ethtool_ops; - netif_napi_add(dev, &pd->napi, smsc9420_rx_poll, NAPI_WEIGHT); + netif_napi_add(dev, &pd->napi, smsc9420_rx_poll, NAPI_POLL_WEIGHT); result = register_netdev(dev); if (result) { |