spi: atmel: Remove redundant list_empty checking
Subsystems (3)
PATCH 1/1 spi: atmel: Remove redundant list_empty checking
This checking is already done in __spi_validate().
Signed-off-by Axel Lin <[email protected]>
--- drivers/spi/spi-atmel.c | 3 --- 1 file changed, 3 deletions(-)
drivers/spi/spi-atmel.c +0 -3
@@ -1213,9 +1213,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);
Signature · 8 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
AppliedQuoted 1 line · Axel Lin
This checking is already done in
__spi_validate().
Applied, thanks.