aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorDavid Jander <[email protected]>2022-06-21 06:12:30 +0000
committerMark Brown <[email protected]>2022-06-27 12:27:22 +0000
commit66a221593cb26dd6aabba63bcd18173f4e69c7ab (patch)
tree14a888120e5047a55994935e64fdf159439df52b /drivers/spi/spi.c
parentspi: Remove check for idling in __spi_pump_messages() (diff)
downloadkernel-66a221593cb26dd6aabba63bcd18173f4e69c7ab.tar.gz
kernel-66a221593cb26dd6aabba63bcd18173f4e69c7ab.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 71b767a9ad77..52736e339645 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -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;
}