[7/7] spi: bitbang: Let spi core validate Tx/Rx buffers for non-zero length transfer
diff mbox

Message ID 1395201629.16346.9.camel@phoenix
State New, archived
Headers show

Commit Message

Axel Lin March 19, 2014, 4 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/spi/spi-bitbang.c | 4 ----
 1 file changed, 4 deletions(-)

Patch
diff mbox

diff --git a/drivers/spi/spi-bitbang.c b/drivers/spi/spi-bitbang.c
index 3bfdb85..4beabea 100644
--- a/drivers/spi/spi-bitbang.c
+++ b/drivers/spi/spi-bitbang.c
@@ -317,10 +317,6 @@  static int spi_bitbang_transfer_one(struct spi_master *master,
 			ndelay(nsecs);
 		}
 		cs_change = t->cs_change;
-		if (!t->tx_buf && !t->rx_buf && t->len) {
-			status = -EINVAL;
-			break;
-		}
 
 		/* transfer data.  the lower level code handles any
 		 * new dma mappings it needs. our caller always gave