[PATCH v2 05/10] spi: atmel-quadspi: remove unnecessary cast

From: Tudor.Ambarus
Date: Thu Jan 31 2019 - 11:15:50 EST


From: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>

The cast is done implicitly.

Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>
Reviewed-by: Boris Brezillon <bbrezillon@xxxxxxxxxx>
---
v2: collect R-b

drivers/spi/atmel-quadspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 4105ded68f44..2db935488270 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -383,7 +383,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;
void __iomem *base = aq->regs;
u32 status, mask, pending;

--
2.9.5