瀏覽代碼

spi: omap2-mcspi: Remove list_empty checking in omap2_mcspi_transfer_one_message

This checking is done in __spi_validate().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Axel Lin 11 年之前
父節點
當前提交
cd60080fd6
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      drivers/spi/spi-omap2-mcspi.c

+ 0 - 3
drivers/spi/spi-omap2-mcspi.c

@@ -1208,9 +1208,6 @@ static int omap2_mcspi_transfer_one_message(struct spi_master *master,
 	m->actual_length = 0;
 	m->actual_length = 0;
 	m->status = 0;
 	m->status = 0;
 
 
-	/* reject invalid messages and transfers */
-	if (list_empty(&m->transfers))
-		return -EINVAL;
 	list_for_each_entry(t, &m->transfers, transfer_list) {
 	list_for_each_entry(t, &m->transfers, transfer_list) {
 		const void	*tx_buf = t->tx_buf;
 		const void	*tx_buf = t->tx_buf;
 		void		*rx_buf = t->rx_buf;
 		void		*rx_buf = t->rx_buf;