Skip to content
Verified Commit ad5a0970 authored by Vitaliy Shevtsov's avatar Vitaliy Shevtsov Committed by Mark Brown
Browse files

ASoC: cs35l41: check the return value from spi_setup()



Currently the return value from spi_setup() is not checked for a failure.
It is unlikely it will ever fail in this particular case but it is still
better to add this check for the sake of completeness and correctness. This
is cheap since it is performed once when the device is being probed.

Handle spi_setup() return value.

Found by Linux Verification Center (linuxtesting.org) with Svace.

Fixes: 872fc0b6 ("ASoC: cs35l41: Set the max SPI speed for the whole device")
Signed-off-by: default avatarVitaliy Shevtsov <v.shevtsov@mt-integration.ru>
Link: https://patch.msgid.link/20250304115643.2748-1-v.shevtsov@mt-integration.ru


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8a7e7a03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment