From: Don Fry Date: Wed, 17 Oct 2007 23:10:10 +0000 (-0700) Subject: pcnet32: remove compile warnings in non-napi mode X-Git-Tag: v2.6.24-rc1~286^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad6c75626cf8b69cd28ae0a81227503a7c3966e;p=linux-2.6 pcnet32: remove compile warnings in non-napi mode Remove compile warning when in non-napi mode. Signed-off-by: Don Fry Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 159a64586d..7f7feaaf53 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);