Commit 437e374d authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr tulip] clean up tulip NAPI poll disable

Looks like the same patch was applied multiple times.  No negative
effects except ugliness and a redundant test.
parent 67155877
...@@ -114,9 +114,8 @@ int tulip_poll(struct net_device *dev, int *budget) ...@@ -114,9 +114,8 @@ int tulip_poll(struct net_device *dev, int *budget)
int rx_work_limit = *budget; int rx_work_limit = *budget;
int received = 0; int received = 0;
if(!netif_running(dev)) goto done; if (!netif_running(dev))
goto done;
if(!netif_running(dev)) goto done;
if (rx_work_limit > dev->quota) if (rx_work_limit > dev->quota)
rx_work_limit = dev->quota; rx_work_limit = dev->quota;
...@@ -254,7 +253,7 @@ int tulip_poll(struct net_device *dev, int *budget) ...@@ -254,7 +253,7 @@ int tulip_poll(struct net_device *dev, int *budget)
* finally: amount of IO did not increase at all. */ * finally: amount of IO did not increase at all. */
} while ((inl(dev->base_addr + CSR5) & RxIntr)); } while ((inl(dev->base_addr + CSR5) & RxIntr));
done: done:
#ifdef CONFIG_TULIP_NAPI_HW_MITIGATION #ifdef CONFIG_TULIP_NAPI_HW_MITIGATION
......
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