Patchwork macb: fix warning "warning: unused variable `dev' "

login
register
mail settings
Submitter Haavard Skinnemoen
Date March 24, 2009, 10:26 a.m.
Message ID <1237890402-19133-1-git-send-email-haavard.skinnemoen@atmel.com>
Download mbox | patch
Permalink /patch/24947/
State Accepted
Delegated to: David Miller
Headers show

Comments

Haavard Skinnemoen - March 24, 2009, 10:26 a.m.
From: vibisreenivasan <vibi_sreenivasan@cms.com>

Removed unused variable dev

Signed-off-by: vibi sreenivasan <vibi_sreenivasan@cms.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
---
 drivers/net/macb.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
David Miller - March 24, 2009, 11:30 p.m.
From: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Date: Tue, 24 Mar 2009 11:26:42 +0100

> Removed unused variable dev
> 
> Signed-off-by: vibi sreenivasan <vibi_sreenivasan@cms.com>
> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index f6c4936..180f9c9 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -513,7 +513,6 @@  static int macb_rx(struct macb *bp, int budget)
 static int macb_poll(struct napi_struct *napi, int budget)
 {
 	struct macb *bp = container_of(napi, struct macb, napi);
-	struct net_device *dev = bp->dev;
 	int work_done;
 	u32 status;