spi: atmel: Remove redundant list_empty checking
authorAxel Lin <axel.lin@ingics.com>
Wed, 19 Feb 2014 11:53:12 +0000 (19:53 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 3 Mar 2014 03:56:16 +0000 (11:56 +0800)
This checking is already done in __spi_validate().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-atmel.c

index b0842f75101647616ada3a3db4f545a57b519be0..88bebf8cf0e57446d88101963c64387f415b4aae 100644 (file)
@@ -1221,9 +1221,6 @@ static int atmel_spi_transfer_one_message(struct spi_master *master,
        dev_dbg(&spi->dev, "new message %p submitted for %s\n",
                                        msg, dev_name(&spi->dev));
 
-       if (unlikely(list_empty(&msg->transfers)))
-               return -EINVAL;
-
        atmel_spi_lock(as);
        cs_activate(as, spi);