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

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

Commit Message

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

Comments

Lars-Peter Clausen March 19, 2014, 7:39 a.m. UTC | #1
On 03/19/2014 04:59 AM, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Acked-by: Lars-Peter Clausen <lars@metafoo.de>

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

Patch
diff mbox

diff --git a/drivers/spi/spi-xcomm.c b/drivers/spi/spi-xcomm.c
index bb478dc..736a488 100644
--- a/drivers/spi/spi-xcomm.c
+++ b/drivers/spi/spi-xcomm.c
@@ -149,11 +149,6 @@  static int spi_xcomm_transfer_one(struct spi_master *master,
 
 	list_for_each_entry(t, &msg->transfers, transfer_list) {
 
-		if (!t->tx_buf && !t->rx_buf && t->len) {
-			status = -EINVAL;
-			break;
-		}
-
 		status = spi_xcomm_setup_transfer(spi_xcomm, spi, t, &settings);
 		if (status < 0)
 			break;