Thread (6 messages) 6 messages, 4 authors, 2008-11-03

Re: [PATCH] SMC91x: delete unused local variable "lp"

From: Atsushi Nemoto <hidden>
Date: 2008-11-03 16:45:26
Also in: lkml

On Wed, 29 Oct 2008 09:56:06 -0400, Mike Frysinger [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Mike Frysinger <redacted>
---
 drivers/net/smc91x.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c
index c70870e..6f9895d 100644
--- a/drivers/net/smc91x.c
+++ b/drivers/net/smc91x.c
@@ -2060,7 +2060,6 @@ static int smc_request_attrib(struct platform_device *pdev,
 			      struct net_device *ndev)
 {
 	struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib");
-	struct smc_local *lp = netdev_priv(ndev);
 
 	if (!res)
 		return 0;
The local variable 'lp' is actually used on some platforms (via
SMC_IO_SHIFT).

Please revert this change and do another way ("unused" marker or
something) to fix the warnings.

---
Atsushi Nemoto
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help