mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
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>
This commit is contained in:
parent
38dbfb59d1
commit
0e6d873ac4
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user