Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e6d873a authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: atmel: Remove redundant list_empty checking



This checking is already done in __spi_validate().

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);