gpiolib: acpi: Simplify error handling in __acpi_find_gpio()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 11 Apr 2024 17:22:30 +0000 (20:22 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Apr 2024 13:12:18 +0000 (16:12 +0300)
commit4cd3ef01f60e97422fc9679e4a8d3869188851da
tree8e9f2ca29fb024a2e61609c505baf9000e70ccd3
parent4fa4c499af53c9338a790798ca44534866b7708c
gpiolib: acpi: Simplify error handling in __acpi_find_gpio()

Now that we don't perform anything on the GPIO descriptor,
we may simplify the error path in newly introduced helper.
Do it so.

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