aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
authorNikanth Karthikesan <nikanth@google.com>2011-06-14 01:53:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-17 14:22:21 -0400
commit545a8aa793e04bee7a7e2aa8caa70bed94fd7a5c (patch)
treebcbeaa5693c1f7c2acfd1eb58ca1971815b427d4 /drivers/net/wireless/libertas
parentd7520b1d2a9ffae94323ffac9dc37d92f656051f (diff)
if_spi: Fix compilation warning - unused variable
if_spi: Fix compilation warning - unused variable 'spi' 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’ The variable is used only in a macro which uses the args only for DEBUG builds. Remove the 'spi' variable completely. Signed-off-by: Nikanth Karthikesan <nikanth@google.com> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/if_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
index 463352c890d7..d041bb2b5777 100644
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -1032,7 +1032,6 @@ static irqreturn_t if_spi_host_interrupt(int irq, void *dev_id)
1032static int if_spi_init_card(struct if_spi_card *card) 1032static int if_spi_init_card(struct if_spi_card *card)
1033{ 1033{
1034 struct lbs_private *priv = card->priv; 1034 struct lbs_private *priv = card->priv;
1035 struct spi_device *spi = card->spi;
1036 int err, i; 1035 int err, i;
1037 u32 scratch; 1036 u32 scratch;
1038 const struct firmware *helper = NULL; 1037 const struct firmware *helper = NULL;
@@ -1080,8 +1079,9 @@ static int if_spi_init_card(struct if_spi_card *card)
1080 "attached to SPI bus_num %d, chip_select %d. " 1079 "attached to SPI bus_num %d, chip_select %d. "
1081 "spi->max_speed_hz=%d\n", 1080 "spi->max_speed_hz=%d\n",
1082 card->card_id, card->card_rev, 1081 card->card_id, card->card_rev,
1083 spi->master->bus_num, spi->chip_select, 1082 card->spi->master->bus_num,
1084 spi->max_speed_hz); 1083 card->spi->chip_select,
1084 card->spi->max_speed_hz);
1085 err = if_spi_prog_helper_firmware(card, helper); 1085 err = if_spi_prog_helper_firmware(card, helper);
1086 if (err) 1086 if (err)
1087 goto out; 1087 goto out;