Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cc059ab authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

spi: armada-3700: Remove unnecessary condition



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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarRomain Perier <romain.perier@free-electrons.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f6f0083c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -340,7 +340,6 @@ 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);

	return IRQ_HANDLED;