Commit 7057fc74 authored by Andy Shevchenko's avatar Andy Shevchenko

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: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent ace0ebe5
......@@ -873,9 +873,6 @@ static struct gpio_desc *acpi_get_gpiod_by_index(struct acpi_device *adev,
struct acpi_gpio_lookup lookup;
int ret;
if (!adev)
return ERR_PTR(-ENODEV);
memset(&lookup, 0, sizeof(lookup));
lookup.index = index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment