Commit e2a30329 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

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: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f012b40
...@@ -1585,7 +1585,7 @@ smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -1585,7 +1585,7 @@ smsc9420_probe(struct pci_dev *pdev, const struct pci_device_id *id)
dev->netdev_ops = &smsc9420_netdev_ops; dev->netdev_ops = &smsc9420_netdev_ops;
dev->ethtool_ops = &smsc9420_ethtool_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); result = register_netdev(dev);
if (result) { if (result) {
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
/* interrupt deassertion in multiples of 10us */ /* interrupt deassertion in multiples of 10us */
#define INT_DEAS_TIME (50) #define INT_DEAS_TIME (50)
#define NAPI_WEIGHT (64)
#define SMSC_BAR (3) #define SMSC_BAR (3)
#ifdef __BIG_ENDIAN #ifdef __BIG_ENDIAN
......
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