projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
spi: atmel: Remove redundant list_empty checking
author
Axel Lin
<axel.lin@ingics.com>
Wed, 19 Feb 2014 11:53:12 +0000
(19:53 +0800)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-atmel.c
b/drivers/spi/spi-atmel.c
index b0842f75101647616ada3a3db4f545a57b519be0..88bebf8cf0e57446d88101963c64387f415b4aae 100644
(file)
--- 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);