projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6ab395
)
spi: omap2-mcspi: Remove list_empty checking in omap2_mcspi_transfer_one_message
author
Axel Lin
<axel.lin@ingics.com>
Tue, 18 Feb 2014 14:01:36 +0000
(22:01 +0800)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 04:38:31 +0000
(13:38 +0900)
This checking is done in __spi_validate().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap2-mcspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-omap2-mcspi.c
b/drivers/spi/spi-omap2-mcspi.c
index 8f0afdb067b84b6212e2f76a5bcb848e23c1ad59..d90edaaa7f69fec727059838335b204cf69449c2 100644
(file)
--- 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;