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:
@@ -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",
|
dev_dbg(&spi->dev, "new message %p submitted for %s\n",
|
||||||
msg, dev_name(&spi->dev));
|
msg, dev_name(&spi->dev));
|
||||||
|
|
||||||
if (unlikely(list_empty(&msg->transfers)))
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
atmel_spi_lock(as);
|
atmel_spi_lock(as);
|
||||||
cs_activate(as, spi);
|
cs_activate(as, spi);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user