提交 0cc059ab 编写于 作者: D Dan Carpenter 提交者: Mark Brown

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: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NRomain Perier <romain.perier@free-electrons.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f6f0083c
...@@ -340,8 +340,7 @@ static irqreturn_t a3700_spi_interrupt(int irq, void *dev_id) ...@@ -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); spireg_write(a3700_spi, A3700_SPI_INT_STAT_REG, cause);
/* Wake up the transfer */ /* Wake up the transfer */
if (a3700_spi->wait_mask & cause) complete(&a3700_spi->done);
complete(&a3700_spi->done);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册