mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
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: David Jander <david@protonic.nl> Link: https://lore.kernel.org/r/20220621061234.3626638-9-david@protonic.nl Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
66a221593c
commit
1a9cafcb57
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user