]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
spi: armada-3700: Remove unnecessary condition
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Dec 2016 09:33:59 +0000 (12:33 +0300)
committerMark Brown <broonie@kernel.org>
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 <dan.carpenter@oracle.com>
Acked-by: Romain Perier <romain.perier@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
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;
 }