Re: [PATCH] gpiolib: initialize return value in gpiochip_set_multiple()

From: Bartosz Golaszewski

Date: Mon Jun 22 2026 - 04:17:15 EST



On Sat, 20 Jun 2026 23:53:19 +0800, Ruoyu Wang wrote:
> gpiochip_set_multiple() falls back to setting lines one by one when the
> chip does not provide set_multiple(). If the fallback path receives an
> empty mask, the loop is skipped and ret is returned without being
> initialized.
>
> Initialize ret to 0 so an empty mask is treated as a successful no-op.
>
> [...]

Applied, thanks!

[1/1] gpiolib: initialize return value in gpiochip_set_multiple()
https://git.kernel.org/brgl/c/99dfa46baba29513d1094c8f30bc86c6ef88543a

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>