Re: (subset) [PATCH v2 1/1] leds: core: Refactor led_update_brightness() to use standard pattern

From: Lee Jones
Date: Thu Oct 19 2023 - 08:21:01 EST


On Mon, 16 Oct 2023 18:30:51 +0300, Andy Shevchenko wrote:
> The standard conditional pattern is to check for errors first and
> bail out if any. Refactor led_update_brightness() accordingly.
>
> While at it, drop unneeded assignment and return 0 unconditionally
> on success.
>
>
> [...]

Applied, thanks!

[1/1] leds: core: Refactor led_update_brightness() to use standard pattern
commit: 0e5bb700df6a6fe36d9487a4e0a82a4c7b1f7b4e

--
Lee Jones [李琼斯]