bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 hurd] acpi: Better error handling on S_acpi_get_pci_irq


From: Damien Zammit
Subject: [PATCH v2 hurd] acpi: Better error handling on S_acpi_get_pci_irq
Date: Sat, 28 Dec 2024 07:35:32 +0000

Return positive error code when return value indicates error.

---
 acpi/acpi-ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acpi/acpi-ops.c b/acpi/acpi-ops.c
index 47f7e3d2..16d96e71 100644
--- a/acpi/acpi-ops.c
+++ b/acpi/acpi-ops.c
@@ -84,7 +84,7 @@ S_acpi_get_pci_irq (struct protid *master,
 
   ret = acpi_get_irq_number(bus, dev, func);
   if (ret < 0)
-    return -EIO;
+    return EIO;
 
   *irq = ret;
   return 0;
-- 
2.45.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]