* [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
* Re: [patch 3/3] spi: armada-3700: Remove unnecessary condition
[not found] ` <20161216093359.GB13942-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org>
@ 2016-12-16 10:30 ` Romain Perier
0 siblings, 0 replies; 3+ messages in thread
From: Romain Perier @ 2016-12-16 10:30 UTC (permalink / raw)
To: Dan Carpenter, Mark Brown
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA
Hello,
Le 16/12/2016 à 10:33, Dan Carpenter a écrit :
> 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;
> }
>
Good catch,
Acked-by: Romain Perier <romain.perier@free-electrons.com>
Thanks,
Romain
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Applied "spi: armada-3700: Remove unnecessary condition" to the spi tree
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 12:31 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-12-16 12:31 UTC (permalink / raw)
To: Dan Carpenter; +Cc: Romain Perier, Mark Brown
The patch
spi: armada-3700: Remove unnecessary condition
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
From 0cc059abac0dc687dc714f3ec2c8d8a134132f56 Mon Sep 17 00:00:00 2001
From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Fri, 16 Dec 2016 12:33:59 +0300
Subject: [PATCH] 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>
---
drivers/spi/spi-armada-3700.c | 3 +--
1 file changed, 1 insertion(+), 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;
}
--
2.11.0
^ 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