aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcnet32.c
diff options
context:
space:
mode:
authorDon Fry <pcnet32@verizon.net>2007-10-17 19:10:10 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-17 20:17:34 -0400
commit6ad6c75626cf8b69cd28ae0a81227503a7c3966e (patch)
tree4ae992448e9551d0e4c7b3aedb7a1257e81f0e55 /drivers/net/pcnet32.c
parentfeff348fc0fe06870a8ec05e78af8ed5cc4c2bdf (diff)
pcnet32: remove compile warnings in non-napi mode
Remove compile warning when in non-napi mode. Signed-off-by: Don Fry <pcnet32@verizon.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/pcnet32.c')
-rw-r--r--drivers/net/pcnet32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c
index 159a64586d00..7f7feaaf53d3 100644
--- a/drivers/net/pcnet32.c
+++ b/drivers/net/pcnet32.c
@@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwio = {
442 442
443static void pcnet32_netif_stop(struct net_device *dev) 443static void pcnet32_netif_stop(struct net_device *dev)
444{ 444{
445#ifdef CONFIG_PCNET32_NAPI
445 struct pcnet32_private *lp = netdev_priv(dev); 446 struct pcnet32_private *lp = netdev_priv(dev);
447#endif
446 dev->trans_start = jiffies; 448 dev->trans_start = jiffies;
447#ifdef CONFIG_PCNET32_NAPI 449#ifdef CONFIG_PCNET32_NAPI
448 napi_disable(&lp->napi); 450 napi_disable(&lp->napi);
@@ -452,7 +454,9 @@ static void pcnet32_netif_stop(struct net_device *dev)
452 454
453static void pcnet32_netif_start(struct net_device *dev) 455static void pcnet32_netif_start(struct net_device *dev)
454{ 456{
457#ifdef CONFIG_PCNET32_NAPI
455 struct pcnet32_private *lp = netdev_priv(dev); 458 struct pcnet32_private *lp = netdev_priv(dev);
459#endif
456 netif_wake_queue(dev); 460 netif_wake_queue(dev);
457#ifdef CONFIG_PCNET32_NAPI 461#ifdef CONFIG_PCNET32_NAPI
458 napi_enable(&lp->napi); 462 napi_enable(&lp->napi);