]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spi: stm32: clean up buffer length assignment
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Wed, 25 Feb 2026 16:16:56 +0000 (17:16 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 30 Apr 2026 06:01:11 +0000 (08:01 +0200)
commit17c022271d9c6c09ee435aedd155c0b67d128c54
tree0b7561ca042042d4b9fca274b9b7cd7174667b1a
parent2b3a73116afb429e8e491f0669fd12c2c2cc6aab
spi: stm32: clean up buffer length assignment

Remove redundant divisions by using the already available xferlen
variable for setting the rx/tx buffer lengths.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/spi/stm32_spi.c