]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib-acpi: Drop unneeded ERR_CAST() in __acpi_find_gpio()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 4 Mar 2025 14:31:19 +0000 (16:31 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 4 Mar 2025 14:47:10 +0000 (16:47 +0200)
commite646f0dae7b0f099b36d12d9cb5ca733b8273f10
treeb84cffc3c90e3187dcb41234567f6bafd20084ee
parent2014c95afecee3e76ca4a56956a936e23283f05b
gpiolib-acpi: Drop unneeded ERR_CAST() in __acpi_find_gpio()

The checked type by PTR_ERR() is the same as returned by __acpi_find_gpio().
Hence there is no need to cast, drop it.

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