Skip to contentSkip to conversation

spi: atmel: Remove redundant list_empty checking

PATCH Applied Axel Lin 2 participants 2 messages Feb 19, 2014 – Mar 3, 2014

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 spi: atmel: Remove redundant list_empty checking

This checking is already done in __spi_validate().

---
 drivers/spi/spi-atmel.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/spi/spi-atmel.c +0 -3
index c3ed7ed..20cfa2d 100644
@@ -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
Applied
#1 lore raw
Quoted 1 line · Axel Lin

This checking is already done in __spi_validate().

Applied, thanks.