spi: pl022: Remove set but not used variable 'chip'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 7 Sep 2018 02:19:16 +0000 (02:19 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 7 Sep 2018 16:03:48 +0000 (17:03 +0100)
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>
drivers/spi/spi-pl022.c

index 5f5f197b153c3ec4b669640fa95f8803344e0b8d..6120e6abcd9683f9114b8c12d24fe3431966720c 100644 (file)
@@ -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) {