summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorReizer, Eyal2016-07-20 09:30:20 +0200
committerKalle Valo2016-07-20 20:09:13 +0200
commitcb6a115188500a448709df1f2d7698a4e1b7a099 (patch)
tree5af5c805d083504261e8bc6934333376bea57a39 /drivers/net/wireless/ti
parentMerge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git (diff)
downloadkernel-qcow2-linux-cb6a115188500a448709df1f2d7698a4e1b7a099.tar.gz
kernel-qcow2-linux-cb6a115188500a448709df1f2d7698a4e1b7a099.tar.xz
kernel-qcow2-linux-cb6a115188500a448709df1f2d7698a4e1b7a099.zip
wlcore: spi: fix build warning caused by redundant variable
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> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r--drivers/net/wireless/ti/wlcore/spi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/spi.c b/drivers/net/wireless/ti/wlcore/spi.c
index 73fbcf15545c..6d24040889b8 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);