Skip to content

Commit

Permalink
pcnet32: remove compile warnings in non-napi mode
Browse files Browse the repository at this point in the history
Remove compile warning when in non-napi mode.

Signed-off-by:  Don Fry <pcnet32@verizon.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Don Fry authored and Jeff Garzik committed Oct 18, 2007
1 parent feff348 commit 6ad6c75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/pcnet32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 6ad6c75

Please sign in to comment.