spi: spidev: remove unused completion
authorSeraphime Kirkovski <kirkseraph@gmail.com>
Fri, 5 May 2017 12:30:49 +0000 (14:30 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 09:37:31 +0000 (18:37 +0900)
This removes an unused completion from spidev_sync.

It was introduced in

commit 25d5cb4b0375e ("spi: remove some spidev oops-on-rmmod paths")

and it was no longer used after:

commit 98d6f47958001 ("spi: spidev: use spi_sync instead of spi_async")

Signed-off-by: Seraphime Kirkovski (Haapie) <kirkseraph@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c

index 9a2a79a871ba009fcfa8b7e2b52002c8845d94ce..3b570018705c61f088a6951cd9bf3d0069ea182e 100644 (file)
@@ -99,7 +99,6 @@ MODULE_PARM_DESC(bufsiz, "data bytes in biggest supported SPI message");
 static ssize_t
 spidev_sync(struct spidev_data *spidev, struct spi_message *message)
 {
-       DECLARE_COMPLETION_ONSTACK(done);
        int status;
        struct spi_device *spi;