Skip to content

Commit

Permalink
spi: atmel: Remove redundant list_empty checking
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Mar 3, 2014
1 parent 38dbfb5 commit 0e6d873
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/spi/spi-atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0e6d873

Please sign in to comment.