diff mbox

[3/4] spi: pl022: Remove dead code

Message ID 54F08D87.5060604@nokia.com (mailing list archive)
State Accepted
Commit 7183d1ebda477c48e5f51f854a766c96b6c0e142
Headers show

Commit Message

Alexander Sverdlin Feb. 27, 2015, 3:30 p.m. UTC
spi: pl022: Remove dead code

"flag" variable does nothing, remove it.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
---
 drivers/spi/spi-pl022.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Mark Brown March 6, 2015, 7:45 p.m. UTC | #1
On Fri, Feb 27, 2015 at 04:30:15PM +0100, Alexander Sverdlin wrote:
> spi: pl022: Remove dead code
> 
> "flag" variable does nothing, remove it.

applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 0566657..ad78766 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -1230,7 +1230,6 @@  static irqreturn_t pl022_interrupt_handler(int irq, void *dev_id)
 	struct pl022 *pl022 = dev_id;
 	struct spi_message *msg = pl022->cur_msg;
 	u16 irq_status = 0;
-	u16 flag = 0;
 
 	if (unlikely(!msg)) {
 		dev_err(&pl022->adev->dev,
@@ -1279,8 +1278,7 @@  static irqreturn_t pl022_interrupt_handler(int irq, void *dev_id)
 
 	readwriter(pl022);
 
-	if ((pl022->tx == pl022->tx_end) && (flag == 0)) {
-		flag = 1;
+	if (pl022->tx == pl022->tx_end) {
 		/* Disable Transmit interrupt, enable receive interrupt */
 		writew((readw(SSP_IMSC(pl022->virtbase)) &
 		       ~SSP_IMSC_MASK_TXIM) | SSP_IMSC_MASK_RXIM,