]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi.c
KARO: cleanup after merge of Freescale 3.10.17 stuff
[karo-tx-linux.git] / drivers / spi / spi.c
index 3ee46ffe90b47f8f36b9a747f37db2b9b95c30fe..d4f9670b51bcbd7947b811b5f8dfab8afc711248 100644 (file)
@@ -1843,11 +1843,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
        if (list_empty(&message->transfers))
                return -EINVAL;
 
-       if (list_empty(&message->transfers))
-               return -EINVAL;
-       if (!message->complete)
-               return -EINVAL;
-
        /* Half-duplex links include original MicroWire, and ones with
         * only one data pin like SPI_3WIRE (switches direction) or where
         * either MOSI or MISO is missing.  They can also be caused by