Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1447041 > unrolled thread

[PATCH] wlcore: spi: fix build warning caused by redundant variable

Started by"Reizer, Eyal" <eyalr@ti.com>
First post2016-07-20 09:40 +0200
Last post2016-07-20 20:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH] wlcore: spi: fix build warning caused by redundant variable "Reizer, Eyal" <eyalr@ti.com> - 2016-07-20 09:40 +0200
    Re: [PATCH] wlcore: spi: fix build warning caused by redundant variable Kalle Valo <kvalo@codeaurora.org> - 2016-07-20 20:30 +0200

#1447041 — [PATCH] wlcore: spi: fix build warning caused by redundant variable

From"Reizer, Eyal" <eyalr@ti.com>
Date2016-07-20 09:40 +0200
Subject[PATCH] wlcore: spi: fix build warning caused by redundant variable
Message-ID<rWUgO-6SN-11@gated-at.bofh.it>
The ret variable is unused in wlcore_probe_of()
Remove it for fixing build warning.

Fixes: 01efe65aba65 ("wlcore: spi: add wl18xx support")
Signed-off-by: Eyal Reizer <eyalr@ti.com>
---
 drivers/net/wireless/ti/wlcore/spi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/wireless/ti/wlcore/spi.c b/drivers/net/wireless/ti/wlcore/spi.c
index 73fbcf1..6d24040 100644
--- a/drivers/net/wireless/ti/wlcore/spi.c
+++ b/drivers/net/wireless/ti/wlcore/spi.c
@@ -454,7 +454,6 @@ static int wlcore_probe_of(struct spi_device *spi, struct wl12xx_spi_glue *glue,
 			   struct wlcore_platdev_data *pdev_data)
 {
 	struct device_node *dt_node = spi->dev.of_node;
-	int ret;
 	const struct of_device_id *of_id;
 
 	of_id = of_match_node(wlcore_spi_of_match_table, dt_node);
-- 
2.7.4

[toc] | [next] | [standalone]


#1447388

FromKalle Valo <kvalo@codeaurora.org>
Date2016-07-20 20:30 +0200
Message-ID<rX4pP-4W5-9@gated-at.bofh.it>
In reply to#1447041
"Reizer, Eyal" <eyalr@ti.com> writes:

> The ret variable is unused in wlcore_probe_of()
> Remove it for fixing build warning.
>
> Fixes: 01efe65aba65 ("wlcore: spi: add wl18xx support")
> Signed-off-by: Eyal Reizer <eyalr@ti.com>

Applied to wireless-drivers-next, thanks.

-- 
Kalle Valo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web