diff options
author | David Jander <[email protected]> | 2022-06-21 08:12:31 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-06-27 13:27:23 +0100 |
commit | 1a9cafcb57b70fc1439d4a5cb28963122568967a (patch) | |
tree | e520967d7efc2e4e85b0400aa37ef141b0ac8813 | |
parent | 66a221593cb26dd6aabba63bcd18173f4e69c7ab (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
-rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 52736e339645..29f42753ef0f 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -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) |