Commit b9e49520 authored by YueHaibing's avatar YueHaibing Committed by Mark Brown

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent af060b3f
...@@ -1490,10 +1490,8 @@ static void do_polling_transfer(struct pl022 *pl022) ...@@ -1490,10 +1490,8 @@ static void do_polling_transfer(struct pl022 *pl022)
struct spi_message *message = NULL; struct spi_message *message = NULL;
struct spi_transfer *transfer = NULL; struct spi_transfer *transfer = NULL;
struct spi_transfer *previous = NULL; struct spi_transfer *previous = NULL;
struct chip_data *chip;
unsigned long time, timeout; unsigned long time, timeout;
chip = pl022->cur_chip;
message = pl022->cur_msg; message = pl022->cur_msg;
while (message->state != STATE_DONE) { while (message->state != STATE_DONE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment