diff mbox

wlcore: spi: fix build warning caused by redundant variable

Message ID 8665E2433BC68541A24DFFCA87B70F5B36161A64@DFRE01.ent.ti.com
State Awaiting Upstream, archived
Delegated to: David Miller
Headers show

Commit Message

Reizer, Eyal July 20, 2016, 7:30 a.m. UTC
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(-)

Comments

Kalle Valo July 20, 2016, 6:27 p.m. UTC | #1
"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.
diff mbox

Patch

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);