summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDon Fry <pcnet32@verizon.net>2007-10-18 01:10:10 +0200
committerJeff Garzik <jeff@garzik.org>2007-10-18 02:17:34 +0200
commit6ad6c75626cf8b69cd28ae0a81227503a7c3966e (patch)
tree4ae992448e9551d0e4c7b3aedb7a1257e81f0e55 /drivers
parentpcnet32: fix non-napi packet reception (diff)
downloadlinux-6ad6c75626cf8b69cd28ae0a81227503a7c3966e.tar.xz
linux-6ad6c75626cf8b69cd28ae0a81227503a7c3966e.zip
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')
-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 = {
static void pcnet32_netif_stop(struct net_device *dev)
{
+#ifdef CONFIG_PCNET32_NAPI
struct pcnet32_private *lp = netdev_priv(dev);
+#endif
dev->trans_start = jiffies;
#ifdef CONFIG_PCNET32_NAPI
napi_disable(&lp->napi);
@@ -452,7 +454,9 @@ static void pcnet32_netif_stop(struct net_device *dev)
static void pcnet32_netif_start(struct net_device *dev)
{
+#ifdef CONFIG_PCNET32_NAPI
struct pcnet32_private *lp = netdev_priv(dev);
+#endif
netif_wake_queue(dev);
#ifdef CONFIG_PCNET32_NAPI
napi_enable(&lp->napi);