Commit cb6a1151 authored by Reizer, Eyal's avatar Reizer, Eyal Committed by Kalle Valo

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: 01efe65a ("wlcore: spi: add wl18xx support")
Signed-off-by: default avatarEyal Reizer <eyalr@ti.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 593463ff
...@@ -454,7 +454,6 @@ static int wlcore_probe_of(struct spi_device *spi, struct wl12xx_spi_glue *glue, ...@@ -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 wlcore_platdev_data *pdev_data)
{ {
struct device_node *dt_node = spi->dev.of_node; struct device_node *dt_node = spi->dev.of_node;
int ret;
const struct of_device_id *of_id; const struct of_device_id *of_id;
of_id = of_match_node(wlcore_spi_of_match_table, dt_node); of_id = of_match_node(wlcore_spi_of_match_table, dt_node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment