Skip to content

Commit

Permalink
spi: npcm-fiu: remove set but not used variable 'retlen'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Mark Brown committed Sep 5, 2019
1 parent 43a5baa commit a0ce1fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/spi/spi-npcm-fiu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit a0ce1fd

Please sign in to comment.