Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: spi-fsl-lpspi: fsl_lpspi_write_tx_fifo(): simplify while() loop check

To simplify the loop check. Combine both conditions of the while() and the
directly following if() into the while().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://patch.msgid.link/20260319-spi-fsl-lpspi-cleanups-v2-10-02b56c5d44a8@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Marc Kleine-Budde and committed by
Mark Brown
4ef7fa7b b326c71d

+1 -3
+1 -3
drivers/spi/spi-fsl-lpspi.c
··· 262 262 263 263 txfifo_cnt = readl(fsl_lpspi->base + IMX7ULP_FSR) & 0xff; 264 264 265 - while (txfifo_cnt < fsl_lpspi->txfifosize) { 266 - if (!fsl_lpspi->remain) 267 - break; 265 + while (txfifo_cnt < fsl_lpspi->txfifosize && fsl_lpspi->remain) { 268 266 fsl_lpspi->tx(fsl_lpspi); 269 267 txfifo_cnt++; 270 268 }