diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-04-29 00:23:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-29 13:56:42 +0300 |
commit | e9c6ec6510301285647d0a1357ce49ab07ccd4ef (patch) | |
tree | 7e1b6f11e01ed88652ece059e42daebbfa9ea1e3 /drivers/net/ethernet/via/via-velocity.c | |
parent | 26450aa7ca4266444e89d065766f8d8b98e277ff (diff) | |
download | linux-e9c6ec6510301285647d0a1357ce49ab07ccd4ef.tar.xz |
eth: velocity: 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/via/via-velocity.c')
-rw-r--r-- | drivers/net/ethernet/via/via-velocity.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/via/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c index be2b992f24d9..ff0c102cb578 100644 --- a/drivers/net/ethernet/via/via-velocity.c +++ b/drivers/net/ethernet/via/via-velocity.c @@ -2846,8 +2846,7 @@ static int velocity_probe(struct device *dev, int irq, netdev->netdev_ops = &velocity_netdev_ops; netdev->ethtool_ops = &velocity_ethtool_ops; - netif_napi_add(netdev, &vptr->napi, velocity_poll, - VELOCITY_NAPI_WEIGHT); + netif_napi_add(netdev, &vptr->napi, velocity_poll, NAPI_POLL_WEIGHT); netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_TX; |