@@ -299,17 +299,10 @@ static int txx9spi_transfer(struct spi_device *spi, struct spi_message *m)
{
struct spi_master *master = spi->master;
struct txx9spi *c = spi_master_get_devdata(master);
- struct spi_transfer *t;
unsigned long flags;
m->actual_length = 0;
- /* check each transfer's parameters */
- list_for_each_entry(t, &m->transfers, transfer_list) {
- if (!t->tx_buf && !t->rx_buf && t->len)
- return -EINVAL;
- }
-
spin_lock_irqsave(&c->lock, flags);
list_add_tail(&m->queue, &c->queue);
queue_work(c->workqueue, &c->work);
Signed-off-by: Axel Lin <axel.lin@ingics.com> --- drivers/spi/spi-txx9.c | 7 ------- 1 file changed, 7 deletions(-)