[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1191338603393-git-send-email-hskinnemoen@atmel.com>
Date: Tue, 2 Oct 2007 17:23:23 +0200
From: Haavard Skinnemoen <hskinnemoen@...el.com>
To: David Miller <davem@...emloft.net>
Cc: Jeff Garzik <jeff@...zik.org>, netdev@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Hans-Jürgen Koch <hjk@...utronix.de>,
Haavard Skinnemoen <hskinnemoen@...el.com>
Subject: [PATCH 2.6.23-rc8-mm2] Fix a compile problem in macb.c
From: Hans-Jürgen Koch <hjk@...utronix.de>
Compiling macb.c fails because the type of parameter 2 of macb_poll()
was changed from int* to int. Furthermore, a local variable was removed
but was still used inside the function. This patch fixes it.
Signed-off-by: Hans J. Koch <hjk@...utronix.de>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@...el.com>
---
drivers/net/macb.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index c28a0a4..047ea7b 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -492,7 +492,7 @@ static int macb_poll(struct napi_struct *napi, int budget)
}
dev_dbg(&bp->pdev->dev, "poll: status = %08lx, budget = %d\n",
- (unsigned long)status, *budget);
+ (unsigned long)status, budget);
if (!(status & MACB_BIT(REC))) {
dev_warn(&bp->pdev->dev,
@@ -503,7 +503,7 @@ static int macb_poll(struct napi_struct *napi, int budget)
}
work_done = macb_rx(bp, budget);
- if (work_done < orig_budget)
+ if (work_done < budget)
netif_rx_complete(dev, napi);
/*
--
1.5.3.1
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists