Message ID | 1387312930-22436-3-git-send-email-jogo@openwrt.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 20e9e78f8b0f1ed02a3a095240853b1767482757 |
Delegated to: | Mark Brown |
Headers | show |
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 5693b4f..ae60731 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -203,13 +203,7 @@ static int bcm63xx_txrx_bufs(struct spi_device *spi, struct spi_transfer *first, if (!timeout) return -ETIMEDOUT; - /* read out all data */ - rx_tail = bcm_spi_readb(bs, SPI_RX_TAIL); - - if (do_rx && rx_tail != len) - return -EIO; - - if (!rx_tail) + if (!do_rx) return 0; len = 0;