spi: armada-3700: Remove unnecessary condition
authorDan Carpenter <[email protected]>
Fri, 16 Dec 2016 09:33:59 +0000 (12:33 +0300)
committerMark Brown <[email protected]>
Fri, 16 Dec 2016 12:28:10 +0000 (12:28 +0000)
We checked that "a3700_spi->wait_mask & cause" was set at the beginning
of the function so we don't need to check again here.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Romain Perier <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-armada-3700.c

index 4e921782652f2549e5f004383a35050d586142ec..4e68f34957cc645f20c023a13b9102e5b6da0f52 100644 (file)
@@ -340,8 +340,7 @@ static irqreturn_t a3700_spi_interrupt(int irq, void *dev_id)
        spireg_write(a3700_spi, A3700_SPI_INT_STAT_REG, cause);
 
        /* Wake up the transfer */
-       if (a3700_spi->wait_mask & cause)
-               complete(&a3700_spi->done);
+       complete(&a3700_spi->done);
 
        return IRQ_HANDLED;
 }