Commit 1a9cafcb authored by David Jander's avatar David Jander Committed by Mark Brown

spi: Remove unneeded READ_ONCE for ctlr->busy flag

Now this flag is written entirely in the mutex, so no need for READ_ONCE
Signed-off-by: default avatarDavid Jander <david@protonic.nl>
Link: https://lore.kernel.org/r/20220621061234.3626638-9-david@protonic.nlSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 66a22159
......@@ -3955,7 +3955,7 @@ static void __spi_transfer_message_noqueue(struct spi_controller *ctlr, struct s
mutex_lock(&ctlr->io_mutex);
was_busy = READ_ONCE(ctlr->busy);
was_busy = ctlr->busy;
ret = __spi_pump_transfer_message(ctlr, msg, was_busy);
if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment