Commit 769ff528 authored by Su Hui's avatar Su Hui Committed by Lee Jones
Browse files

backlight: ili922x: Add an error code check in ili922x_write()



Clang static analyzer complains that value stored to 'ret' is never read.
Return the error code when spi_sync() failed.

Signed-off-by: default avatarSu Hui <suhui@nfschina.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20231130051155.1235972-1-suhui@nfschina.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 64d9799d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment