Commit 6e3779e3 authored by Len Bao's avatar Len Bao Committed by Lee Jones
Browse files

leds: max77705: Function return instead of variable assignment



Coverity noticed that assigning value -EINVAL to 'ret' in the if
statement is useless because 'ret' is overwritten a few lines later.
However, after inspect the code, this warning reveals that we need to
return -EINVAL instead of the variable assignment. So, fix it.

Coverity-id: 1646104
Fixes: aebb5fc9 ("leds: max77705: Add LEDs support")
Signed-off-by: default avatarLen Bao <len.bao@gmx.us>
Link: https://lore.kernel.org/r/20250727075649.34496-1-len.bao@gmx.us


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