Skip to content

Commit

Permalink
spi: Drop warning from spi_stop_queue()
Browse files Browse the repository at this point in the history
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 <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230916161235.1050176-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Uwe Kleine-König authored and Mark Brown committed Sep 18, 2023
1 parent b0ef97a commit 9386c95
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2093,10 +2093,6 @@ static int spi_stop_queue(struct spi_controller *ctlr)

spin_unlock_irqrestore(&ctlr->queue_lock, flags);

if (ret) {
dev_warn(&ctlr->dev, "could not stop message queue\n");
return ret;
}
return ret;
}

Expand Down

0 comments on commit 9386c95

Please sign in to comment.