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


Groups > linux.kernel > #1447041

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

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From "Reizer, Eyal" <eyalr@ti.com>
Newsgroups linux.kernel
Subject [PATCH] wlcore: spi: fix build warning caused by redundant variable
Date Wed, 20 Jul 2016 09:40:02 +0200
Message-ID <rWUgO-6SN-11@gated-at.bofh.it> (permalink)
References <rWUgO-6SN-13@gated-at.bofh.it>
Thread-Topic [PATCH] wlcore: spi: fix build warning caused by redundant variable
Thread-Index AQHR4lgsQBxKZd+MHU2DCLmHpvh9M6Ag7DNQ
Accept-Language en-US
Content-Language en-US
X-Originating-IP [10.167.188.42]
X-Exclaimer-Md-Config f9c360f5-3d1e-4c3c-8703-f45bf52eff6b
Content-Type text/plain; charset="Windows-1252"
Content-Transfer-Encoding 8BIT
MIME-Version 1.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
X-Original-Date Wed, 20 Jul 2016 07:30:20 +0000
X-Original-Message-ID <8665E2433BC68541A24DFFCA87B70F5B36161A64@DFRE01.ent.ti.com>
X-Original-References <1468999637-31006-1-git-send-email-eyalr@ti.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1447041

Show key headers only | View raw


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

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[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

csiph-web