summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2019-01-10 05:14:07 -0500
committerMark Brown <broonie@kernel.org>2019-01-10 05:59:39 -0500
commit4f0a0cd52d6c812fbf737e436b18f04eac2e312e (patch)
tree63f72f4f1e67c8e56b8f5f1151a60789181dd752
parent412e60373245fd1dfae8d4d44c5d1406b3d90971 (diff)
spi: dw: fix warning unused variable 'ret'
When CONFIG_SPI_DESIGNWARE are enabled we see the unused variable warning in dw_spi_setup. ../drivers/spi/spi-dw.c: In function ‘dw_spi_setup’: ../drivers/spi/spi-dw.c:400:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^~~ Remove the unused varable. Fixes: 9400c41e77b8 ("spi: dw: Convert to use CS GPIO descriptors") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-dw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index f54b498001a9..7092e58add2c 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -397,7 +397,6 @@ static int dw_spi_setup(struct spi_device *spi)
397{ 397{
398 struct dw_spi_chip *chip_info = NULL; 398 struct dw_spi_chip *chip_info = NULL;
399 struct chip_data *chip; 399 struct chip_data *chip;
400 int ret;
401 400
402 /* Only alloc on first setup */ 401 /* Only alloc on first setup */
403 chip = spi_get_ctldata(spi); 402 chip = spi_get_ctldata(spi);