Skip to contentSkip to conversation

spi: pl022: Remove dead code

PATCH Applied Alexander Sverdlin 2 participants 2 messages Feb 27, 2015 – Mar 6, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 spi: pl022: Remove dead code

spi: pl022: Remove dead code

"flag" variable does nothing, remove it.

---
 drivers/spi/spi-pl022.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/spi/spi-pl022.c +1 -3
index 0566657..ad78766 100644
@@ -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,

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

Applied
#2 lore raw
Quoted 3 lines · Alexander Sverdlin

spi: pl022: Remove dead code

"flag" variable does nothing, remove it.

applied, thanks.