diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-18 18:01:36 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-19 08:38:31 +0400 |
commit | cd60080fd6200bd2e5ca9bf5135d32c06a8e6f3b (patch) | |
tree | 7357c0c19d386795ae621801e1f4f57a850d7b21 /drivers/spi/spi-omap2-mcspi.c | |
parent | f6ab395bfeb0ba8dd0397c24b76af00ed016f286 (diff) | |
download | linux-cd60080fd6200bd2e5ca9bf5135d32c06a8e6f3b.tar.xz |
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>
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, m->actual_length = 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) { const void *tx_buf = t->tx_buf; void *rx_buf = t->rx_buf; |