summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-atmel.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-19 19:53:12 +0800
committerMark Brown <broonie@linaro.org>2014-03-03 11:56:16 +0800
commit0e6d873ac43c7452d33f7b57b8b91172ad0f78d7 (patch)
treec6cb4c4e58a234f3bbe0f072376154513f61d53e /drivers/spi/spi-atmel.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadlinux-stable-0e6d873ac43c7452d33f7b57b8b91172ad0f78d7.tar.gz
linux-stable-0e6d873ac43c7452d33f7b57b8b91172ad0f78d7.tar.bz2
linux-stable-0e6d873ac43c7452d33f7b57b8b91172ad0f78d7.zip
spi: atmel: Remove redundant list_empty checking
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>
Diffstat (limited to 'drivers/spi/spi-atmel.c')
-rw-r--r--drivers/spi/spi-atmel.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index b0842f751016..88bebf8cf0e5 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -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);