Re: [PATCH 2/2] gpio: make gpiod_is_equal() arguments stricter

From: Andy Shevchenko
Date: Sat Jun 21 2025 - 15:13:03 EST


Fri, Jun 20, 2025 at 02:58:02PM +0200, Bartosz Golaszewski kirjoitti:
>
> It makes no sense for a GPIO descriptor comparator to return true when
> the arguments passed to it are NULL or IS_ERR(). Let's validate both and
> return false unless both are valid GPIO descriptors.

Acked-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko