spi: core: Use list_first_entry to extract head of queue
PATCH 1/1 spi: core: Use list_first_entry to extract head of queue
For slightly better readability.
Signed-off-by Axel Lin <[email protected]>
--- drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi.c +1 -1
@@ -685,7 +685,7 @@ static void spi_pump_messages(struct kthread_work *work) }/* Extract head of queue */ master->cur_msg = - list_entry(master->queue.next, struct spi_message, queue); + list_first_entry(&master->queue, struct spi_message, queue);list_del_init (&master->cur_msg->queue);if (master->busy)
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 3 lines · Axel Lin
For slightly better readability.
Signed-off-by Axel Lin <[email protected]>
Applied, thanks.