aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorDavid Jander2022-06-21 08:12:31 +0200
committerMark Brown2022-06-27 13:27:23 +0100
commit1a9cafcb57b70fc1439d4a5cb28963122568967a (patch)
treee520967d7efc2e4e85b0400aa37ef141b0ac8813 /drivers/spi/spi.c
parent66a221593cb26dd6aabba63bcd18173f4e69c7ab (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 <david@protonic.nl> Link: https://lore.kernel.org/r/20220621061234.3626638-9-david@protonic.nl Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
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)