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

From: Linus Walleij

Date: Fri Feb 20 2026 - 02:48:31 EST


On Fri, Feb 13, 2026 at 10:31 AM Tzung-Bi Shih <tzungbi@xxxxxxxxxx> 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@xxxxxxxxxx>

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

Yours,
Linus Walleij