pcnet32: remove compile warnings in non-napi mode
authorDon Fry <pcnet32@verizon.net>
Wed, 17 Oct 2007 23:10:10 +0000 (16:10 -0700)
committerJeff Garzik <jeff@garzik.org>
Thu, 18 Oct 2007 00:17:34 +0000 (20:17 -0400)
Remove compile warning when in non-napi mode.

Signed-off-by: Don Fry <pcnet32@verizon.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcnet32.c

index 159a64586d00c84c2de2ea684e04b0afde81955f..7f7feaaf53d3acb3d7570571dd02bfabedfcae82 100644 (file)
@@ -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);