[PATCH][TRIVIAL] if_spi: Fix compilation warning - unused variable

Nikanth Karthikesan nikanth at google.com
Fri Jun 10 04:57:02 EDT 2011


if_spi: Fix compilation warning - unused variable

drivers/net/wireless/libertas/if_spi.c: In function ‘if_spi_init_card’:
drivers/net/wireless/libertas/if_spi.c:1035: warning: unused variable ‘spi’

Signed-off-by: Nikanth Karthikesan <nikanth at google.com>

---

Index: linux-2.6/drivers/net/wireless/libertas/if_spi.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/libertas/if_spi.c	2011-06-10 11:44:29.900986193 +0530
+++ linux-2.6/drivers/net/wireless/libertas/if_spi.c	2011-06-10 11:45:07.830985403 +0530
@@ -1066,7 +1066,7 @@
 			goto out;
 		}
 
-		err = lbs_get_firmware(&card->spi->dev, NULL, NULL,
+		err = lbs_get_firmware(&spi->dev, NULL, NULL,
 					card->card_id, &fw_table[0], &helper,
 					&mainfw);
 		if (err) {





More information about the libertas-dev mailing list