diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-12-16 12:33:59 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-16 12:28:10 +0000 |
commit | 0cc059abac0dc687dc714f3ec2c8d8a134132f56 (patch) | |
tree | 5b9a1bd93103e68c1d4c1e37afc2276902fb8f4f /drivers/spi | |
parent | f6f0083cca66e673cca6fa26b52b107b5570081d (diff) | |
download | talos-op-linux-0cc059abac0dc687dc714f3ec2c8d8a134132f56.tar.gz talos-op-linux-0cc059abac0dc687dc714f3ec2c8d8a134132f56.zip |
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: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Romain Perier <romain.perier@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-armada-3700.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c index 4e921782652f..4e68f34957cc 100644 --- a/drivers/spi/spi-armada-3700.c +++ b/drivers/spi/spi-armada-3700.c @@ -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; } |