diff options
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
-rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 8f0afdb067b8..d90edaaa7f69 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -1208,9 +1208,6 @@ static int omap2_mcspi_transfer_one_message(struct spi_master *master, | |||
1208 | m->actual_length = 0; | 1208 | m->actual_length = 0; |
1209 | m->status = 0; | 1209 | m->status = 0; |
1210 | 1210 | ||
1211 | /* reject invalid messages and transfers */ | ||
1212 | if (list_empty(&m->transfers)) | ||
1213 | return -EINVAL; | ||
1214 | list_for_each_entry(t, &m->transfers, transfer_list) { | 1211 | list_for_each_entry(t, &m->transfers, transfer_list) { |
1215 | const void *tx_buf = t->tx_buf; | 1212 | const void *tx_buf = t->tx_buf; |
1216 | void *rx_buf = t->rx_buf; | 1213 | void *rx_buf = t->rx_buf; |