Re: [PATCH v3 02/11] gpio: Remove redundant check for struct gpio_chip

Linus Walleij
2026-02-20T07:48:20Z

On Fri, Feb 13, 2026 at 10:31 AM Tzung-Bi Shih <tzungbi@kernel.org> wrote:

> gpiolib_dbg_show() is only called by gpiolib_seq_show() which has
> ensured the struct gpio_chip. Remove the redundant check in
> gpiolib_dbg_show().
>
> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>

That's a very nice patch, good observation!
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij