]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: fix warning unused variable 'ret'
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 10 Jan 2019 10:14:07 +0000 (11:14 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 10 Jan 2019 10:59:39 +0000 (10:59 +0000)
commit067f801c222bb7ce39a8c4a798d634086747a286
tree63f72f4f1e67c8e56b8f5f1151a60789181dd752
parent0b819bbe5c4e477323ada9b3058bba891972585d
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: 634ceb9ea110 ("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>
drivers/spi/spi-dw.c