[4/5] spi/dw_spi.c: remove conditional from 'poll_transfer'.
diff mbox

Message ID 1264074052-2214-4-git-send-email-george@georgeshore.com
State Accepted
Headers show

Commit Message

George Shore Jan. 21, 2010, 11:40 a.m. UTC
None

Patch
diff mbox

diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c
index 01292da..4f91554 100644
--- a/drivers/spi/dw_spi.c
+++ b/drivers/spi/dw_spi.c
@@ -408,12 +408,9 @@  static irqreturn_t dw_spi_irq(int irq, void *dev_id)
 /* Must be called inside pump_transfers() */
 static void poll_transfer(struct dw_spi *dws)
 {
-	if (dws->tx) {
-		while (dws->write(dws))
-			dws->read(dws);
-	}
+	while (dws->write(dws))
+		dws->read(dws);
 
-	dws->read(dws);
 	transfer_complete(dws);
 }