Skip to content

Commit 9386c95

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
spi: Drop warning from spi_stop_queue()
Both callers of spi_stop_queue() (i.e. spi_destroy_queue() and spi_controller_suspend()) already emit an error message if spi_stop_queue() fails. Another warning in this case isn't helpful, so drop it. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b0ef97a commit 9386c95

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/spi/spi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,10 +2093,6 @@ static int spi_stop_queue(struct spi_controller *ctlr)
20932093

20942094
spin_unlock_irqrestore(&ctlr->queue_lock, flags);
20952095

2096-
if (ret) {
2097-
dev_warn(&ctlr->dev, "could not stop message queue\n");
2098-
return ret;
2099-
}
21002096
return ret;
21012097
}
21022098

0 commit comments

Comments
 (0)