Message ID | 1264074052-2214-4-git-send-email-george@georgeshore.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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); }