未验证 提交 1a9cafcb 编写于 作者: D David Jander 提交者: 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: NDavid Jander <david@protonic.nl>
Link: https://lore.kernel.org/r/20220621061234.3626638-9-david@protonic.nlSigned-off-by: NMark Brown <broonie@kernel.org>
上级 66a22159
...@@ -3955,7 +3955,7 @@ static void __spi_transfer_message_noqueue(struct spi_controller *ctlr, struct s ...@@ -3955,7 +3955,7 @@ static void __spi_transfer_message_noqueue(struct spi_controller *ctlr, struct s
mutex_lock(&ctlr->io_mutex); mutex_lock(&ctlr->io_mutex);
was_busy = READ_ONCE(ctlr->busy); was_busy = ctlr->busy;
ret = __spi_pump_transfer_message(ctlr, msg, was_busy); ret = __spi_pump_transfer_message(ctlr, msg, was_busy);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册