mfd: adp5585: Drop useless return statement
authorNuno Sá <nuno.sa@analog.com>
Thu, 17 Jul 2025 14:51:34 +0000 (15:51 +0100)
committerLee Jones <lee@kernel.org>
Wed, 1 Oct 2025 09:28:03 +0000 (10:28 +0100)
commit0b9483bf7f319468bd37351c112c8f0bfe242028
tree26030848895254d6b1ca4f7af2818ecbf8edf602
parent81a2c31257411296862487aaade98b7d9e25dc72
mfd: adp5585: Drop useless return statement

In adp5585_reset_ev_parse(), when parsing the
adi,reset-pulse-width-us property, we were returning in case it was
found and valid. No point in doing that as we'll be returning anyways
after the exiting the property scope. And it could actually lead to bugs
if new properties happen to added after this one.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-gpio/c85604d9e077511b8aa6ee0786579594cc0103d4.camel@gmail.com/T/#ma25557bd06ccd2531dc9c85ba6be74af781b81aa
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250717-adp5585-drop-ret-v1-1-2ae65bd780aa@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/adp5585.c