diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-09-05 10:24:36 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-09-05 20:19:45 +0300 |
commit | a0ce1fd11e587be803eb2f299d478c962df3706f (patch) | |
tree | ff1cacd23ffdc6763eadc332228b51fd28d3e58f /drivers/spi | |
parent | 43a5baa6d8b8c6d93458ab0c6a8a7700e94b9708 (diff) | |
download | linux-a0ce1fd11e587be803eb2f299d478c962df3706f.tar.xz |
spi: npcm-fiu: remove set but not used variable 'retlen'
drivers/spi/spi-npcm-fiu.c: In function npcm_fiu_read:
drivers/spi/spi-npcm-fiu.c:472:9: warning:
variable retlen set but not used [-Wunused-but-set-variable]
It is never used, so remove it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190905072436.23932-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-npcm-fiu.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-npcm-fiu.c b/drivers/spi/spi-npcm-fiu.c index d9e2f58b104b..cb52fd8008d0 100644 --- a/drivers/spi/spi-npcm-fiu.c +++ b/drivers/spi/spi-npcm-fiu.c @@ -469,7 +469,6 @@ static int npcm_fiu_read(struct spi_mem *mem, const struct spi_mem_op *op) { u8 *data = op->data.buf.in; int i, readlen, currlen; - size_t retlen = 0; u8 *buf_ptr; u32 addr; int ret; @@ -494,8 +493,6 @@ static int npcm_fiu_read(struct spi_mem *mem, const struct spi_mem_op *op) currlen -= 16; } while (currlen > 0); - retlen = i; - return 0; } |