Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6ad6c75626cf8b69cd28ae0a81227503a7c3966e
Commit:     6ad6c75626cf8b69cd28ae0a81227503a7c3966e
Parent:     feff348fc0fe06870a8ec05e78af8ed5cc4c2bdf
Author:     Don Fry <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 16:10:10 2007 -0700
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:17:34 2007 -0400

    pcnet32: remove compile warnings in non-napi mode
    
    Remove compile warning when in non-napi mode.
    
    Signed-off-by:  Don Fry <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/pcnet32.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c
index 159a645..7f7feaa 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to