mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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>
This commit is contained in:
parent
2014c95afe
commit
e646f0dae7
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user