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

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

spi: core: Use list_first_entry to extract head of queue



For slightly better readability.

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