[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 hurd] acpi: Better error handling on S_acpi_get_pci_irq
From: |
Samuel Thibault |
Subject: |
Re: [PATCH v2 hurd] acpi: Better error handling on S_acpi_get_pci_irq |
Date: |
Sat, 28 Dec 2024 10:00:34 +0100 |
Applied, thanks!
Damien Zammit via Bug reports for the GNU Hurd, le sam. 28 déc. 2024 07:35:32
+0000, a ecrit:
> 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
>
>
>