Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-3
-3
drivers/gpio/gpiolib-acpi.c
··· 873 873 struct acpi_gpio_lookup lookup; 874 874 int ret; 875 875 876 - if (!adev) 877 - return ERR_PTR(-ENODEV); 878 - 879 876 memset(&lookup, 0, sizeof(lookup)); 880 877 lookup.index = index; 881 878