From: Dan Carpenter Date: Fri, 16 Dec 2016 09:33:59 +0000 (+0300) Subject: spi: armada-3700: Remove unnecessary condition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0cc059abac0dc687dc714f3ec2c8d8a134132f56;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Romain Perier Signed-off-by: Mark Brown --- 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; }