gpiolib: acpi: Remove never true check in acpi_get_gpiod_by_index()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 10 Apr 2024 20:21:46 +0000 (23:21 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 11 Apr 2024 13:37:08 +0000 (16:37 +0300)
commit7057fc74d6886471b7dcb4faadf56bd71e28296d
treeb3e56bbe1aa299a5871d08393c6ddac2b5d0bb66
parentace0ebe5c98d66889f19e0f30e2518d0c58d0e04
gpiolib: acpi: Remove never true check in acpi_get_gpiod_by_index()

The acpi_get_gpiod_by_index() never is called with adev being NULL.
Remove the redundant check.

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c