spi: spi-fsl-lpspi: directly return ret in fsl_lpspi_transfer_one()

Both fsl_lpspi_dma_transfer() and fsl_lpspi_pio_transfer() only return
negative error values in case of error or 0 in case of success.

Directly return ret, there is no need to check for positive error values
and return them as 0.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://patch.msgid.link/20261009-spi-fsl-lpspi-more-cleanups-v1-2-2d4549d5205e@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Marc Kleine-Budde 2026-10-09 12:16:36 +02:00 • committed by Mark Brown
commit b0f0c761ed
No known key found for this signature in database
GPG key ID: 2FEF73B0B3D03889