mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
spi: Remove the now unused ctlr->idling flag
The ctlr->idling flag is never checked now, so we don't need to set it either. Signed-off-by: David Jander <david@protonic.nl> Link: https://lore.kernel.org/r/20220621061234.3626638-8-david@protonic.nl Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -1674,7 +1674,6 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
|
||||
}
|
||||
|
||||
ctlr->busy = false;
|
||||
ctlr->idling = true;
|
||||
spin_unlock_irqrestore(&ctlr->queue_lock, flags);
|
||||
|
||||
kfree(ctlr->dummy_rx);
|
||||
@@ -1689,7 +1688,6 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread)
|
||||
trace_spi_controller_idle(ctlr);
|
||||
|
||||
spin_lock_irqsave(&ctlr->queue_lock, flags);
|
||||
ctlr->idling = false;
|
||||
ctlr->queue_empty = true;
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user