Skip to content

Commit b105567

Browse files
committed
gpiolib: acpi: Use %pe when passing an error pointer to dev_err()
One of the coccinelle recipe suggests to use %pe when we deal with an error pointer. Do it so. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@inria.fr> Closes: https://lore.kernel.org/r/202510231350.calxvXIm-lkp@intel.com/ Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent e4a77f9 commit b105567

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpio/gpiolib-acpi-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ static acpi_status acpi_gpiochip_alloc_event(struct acpi_resource *ares,
382382
desc = acpi_request_own_gpiod(chip, agpio, 0, "ACPI:Event");
383383
if (IS_ERR(desc)) {
384384
dev_err(chip->parent,
385-
"Failed to request GPIO for pin 0x%04X, err %ld\n",
386-
pin, PTR_ERR(desc));
385+
"Failed to request GPIO for pin 0x%04X, err %pe\n",
386+
pin, desc);
387387
return AE_OK;
388388
}
389389

0 commit comments

Comments
 (0)