diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-07 04:19:16 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-07 18:03:48 +0200 |
commit | b9e49520c1144cb4109ec6ed1fa76c326da850d0 (patch) | |
tree | c20745f0c4048a7cc3bb8a149dcdc40b7a756b7f /drivers/spi/spi-pl022.c | |
parent | spi: dw: support 4-16 bits per word (diff) | |
download | linux-b9e49520c1144cb4109ec6ed1fa76c326da850d0.tar.xz linux-b9e49520c1144cb4109ec6ed1fa76c326da850d0.zip |
spi: pl022: Remove set but not used variable 'chip'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/spi/spi-pl022.c: In function 'do_polling_transfer':
drivers/spi/spi-pl022.c:1493:20: warning:
variable 'chip' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 5f5f197b153c..6120e6abcd96 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -1490,10 +1490,8 @@ static void do_polling_transfer(struct pl022 *pl022) struct spi_message *message = NULL; struct spi_transfer *transfer = NULL; struct spi_transfer *previous = NULL; - struct chip_data *chip; unsigned long time, timeout; - chip = pl022->cur_chip; message = pl022->cur_msg; while (message->state != STATE_DONE) { |