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

usb: lan78xx: 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 889e3691
...@@ -92,8 +92,6 @@ ...@@ -92,8 +92,6 @@
WAKE_MCAST | WAKE_BCAST | \ WAKE_MCAST | WAKE_BCAST | \
WAKE_ARP | WAKE_MAGIC) WAKE_ARP | WAKE_MAGIC)
#define LAN78XX_NAPI_WEIGHT 64
#define TX_URB_NUM 10 #define TX_URB_NUM 10
#define TX_SS_URB_NUM TX_URB_NUM #define TX_SS_URB_NUM TX_URB_NUM
#define TX_HS_URB_NUM TX_URB_NUM #define TX_HS_URB_NUM TX_URB_NUM
...@@ -4376,7 +4374,7 @@ static int lan78xx_probe(struct usb_interface *intf, ...@@ -4376,7 +4374,7 @@ static int lan78xx_probe(struct usb_interface *intf,
netif_set_gso_max_size(netdev, LAN78XX_TSO_SIZE(dev)); netif_set_gso_max_size(netdev, LAN78XX_TSO_SIZE(dev));
netif_napi_add(netdev, &dev->napi, lan78xx_poll, LAN78XX_NAPI_WEIGHT); netif_napi_add(netdev, &dev->napi, lan78xx_poll, NAPI_POLL_WEIGHT);
INIT_DELAYED_WORK(&dev->wq, lan78xx_delayedwork); INIT_DELAYED_WORK(&dev->wq, lan78xx_delayedwork);
init_usb_anchor(&dev->deferred); init_usb_anchor(&dev->deferred);
......
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