diff options
| author | Andy Shevchenko <[email protected]> | 2025-03-04 14:31:19 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2025-03-04 14:47:10 +0000 |
| commit | e646f0dae7b0f099b36d12d9cb5ca733b8273f10 (patch) | |
| tree | b84cffc3c90e3187dcb41234567f6bafd20084ee | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-e646f0dae7b0f099b36d12d9cb5ca733b8273f10.tar.gz kernel-e646f0dae7b0f099b36d12d9cb5ca733b8273f10.zip | |
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 <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
| -rw-r--r-- | drivers/gpio/gpiolib-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 1f9fe50bba00..f0dd1aa89583 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -994,7 +994,7 @@ __acpi_find_gpio(struct fwnode_handle *fwnode, const char *con_id, unsigned int desc = acpi_get_gpiod_from_data(fwnode, propname, idx, info); if (PTR_ERR(desc) == -EPROBE_DEFER) - return ERR_CAST(desc); + return desc; if (!IS_ERR(desc)) return desc; |
