public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 3/3] spi: armada-3700: Remove unnecessary condition
@ 2016-12-16  9:33 Dan Carpenter
       [not found] ` <20161216093359.GB13942-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org>
  2016-12-16 12:31 ` Applied "spi: armada-3700: Remove unnecessary condition" to the spi tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2016-12-16  9:33 UTC (permalink / raw)
  To: Mark Brown, Romain Perier; +Cc: linux-spi, kernel-janitors

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>

diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c
index 5c7508dc6f0b..e98d464b3ff0 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;
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-16 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-16  9:33 [patch 3/3] spi: armada-3700: Remove unnecessary condition Dan Carpenter
     [not found] ` <20161216093359.GB13942-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org>
2016-12-16 10:30   ` Romain Perier
2016-12-16 12:31 ` Applied "spi: armada-3700: Remove unnecessary condition" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox