spi: atmel-quadspi: remove unnecessary cast
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 5 Feb 2019 17:33:17 +0000 (17:33 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 17:19:06 +0000 (17:19 +0000)
The cast is done implicitly.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c

index be1d1ba..be7f87f 100644 (file)
@@ -389,7 +389,7 @@ static int atmel_qspi_init(struct atmel_qspi *aq)
 
 static irqreturn_t atmel_qspi_interrupt(int irq, void *dev_id)
 {
-       struct atmel_qspi *aq = (struct atmel_qspi *)dev_id;
+       struct atmel_qspi *aq = dev_id;
        u32 status, mask, pending;
 
        status = readl_relaxed(aq->regs + QSPI_SR);