From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Lin Subject: [PATCH 6/7] spi: xcomm: Let spi core validate Tx/Rx buffers for non-zero length transfer Date: Wed, 19 Mar 2014 11:59:34 +0800 Message-ID: <1395201574.16346.8.camel@phoenix> References: <1395201227.16346.1.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Lars-Peter Clausen , linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mark Brown Return-path: In-Reply-To: <1395201227.16346.1.camel@phoenix> Sender: linux-spi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Signed-off-by: Axel Lin --- drivers/spi/spi-xcomm.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html