Re: (subset) [PATCH] leds: max77705: Function return instead of variable assignment

From: Lee Jones
Date: Thu Jul 31 2025 - 07:46:31 EST


On Sun, 27 Jul 2025 07:56:45 +0000, Len Bao wrote:
> Coverity noticed that assigning value -EINVAL to 'ret' in the if
> statement is useless because 'ret' is overwritten a few lines later.
> However, afer inspect the code, this warning reveals that we need to
> return -EIVANL instead of the variable assignment. So, fix it.
>
>

Applied, thanks!

[1/1] leds: max77705: Function return instead of variable assignment
commit: 5913b60c2851102d51469ae7a2a69344a3a83eaf

--
Lee Jones [李琼斯]