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>
This commit is contained in:
parent
feff348fc0
commit
6ad6c75626
1 changed files with 4 additions and 0 deletions
|
@ -442,7 +442,9 @@ static struct pcnet32_access pcnet32_dwio = {
|
||||||
|
|
||||||
static void pcnet32_netif_stop(struct net_device *dev)
|
static void pcnet32_netif_stop(struct net_device *dev)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_PCNET32_NAPI
|
||||||
struct pcnet32_private *lp = netdev_priv(dev);
|
struct pcnet32_private *lp = netdev_priv(dev);
|
||||||
|
#endif
|
||||||
dev->trans_start = jiffies;
|
dev->trans_start = jiffies;
|
||||||
#ifdef CONFIG_PCNET32_NAPI
|
#ifdef CONFIG_PCNET32_NAPI
|
||||||
napi_disable(&lp->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)
|
static void pcnet32_netif_start(struct net_device *dev)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_PCNET32_NAPI
|
||||||
struct pcnet32_private *lp = netdev_priv(dev);
|
struct pcnet32_private *lp = netdev_priv(dev);
|
||||||
|
#endif
|
||||||
netif_wake_queue(dev);
|
netif_wake_queue(dev);
|
||||||
#ifdef CONFIG_PCNET32_NAPI
|
#ifdef CONFIG_PCNET32_NAPI
|
||||||
napi_enable(&lp->napi);
|
napi_enable(&lp->napi);
|
||||||
|
|
Loading…
Add table
Reference in a new issue