Skip to content
Unverified Commit 4f0a0cd5 authored by Anders Roxell's avatar Anders Roxell Committed by Mark Brown
Browse files

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: 9400c41e ("spi: dw: Convert to use CS GPIO descriptors")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 412e6037
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment