[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169771805542.2469471.17417276812343058652.b4-ty@kernel.org>
Date: Thu, 19 Oct 2023 13:20:55 +0100
From: Lee Jones <lee@...nel.org>
To: Hans de Goede <hdegoede@...hat.com>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Pavel Machek <pavel@....cz>, Lee Jones <lee@...nel.org>,
Denis Osterland-Heim <denis.osterland@...hl.com>
Subject: Re: (subset) [PATCH v2 1/1] leds: core: Refactor
led_update_brightness() to use standard pattern
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 [李琼斯]
Powered by blists - more mailing lists