Commit 7e629b50 authored by Kenji Kaneshige's avatar Kenji Kaneshige Committed by Tony Luck

[IA64] pci_irq.c: need signed variable to handle error return from acpi

This patch fix the error check in acpi_pci_irq_disable().
Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent cc9bd1c6
...@@ -460,7 +460,7 @@ void ...@@ -460,7 +460,7 @@ void
acpi_pci_irq_disable ( acpi_pci_irq_disable (
struct pci_dev *dev) struct pci_dev *dev)
{ {
u32 gsi = 0; int gsi = 0;
u8 pin = 0; u8 pin = 0;
int edge_level = ACPI_LEVEL_SENSITIVE; int edge_level = ACPI_LEVEL_SENSITIVE;
int active_high_low = ACPI_ACTIVE_LOW; int active_high_low = ACPI_ACTIVE_LOW;
...@@ -487,10 +487,10 @@ acpi_pci_irq_disable ( ...@@ -487,10 +487,10 @@ acpi_pci_irq_disable (
* If no PRT entry was found, we'll try to derive an IRQ from the * If no PRT entry was found, we'll try to derive an IRQ from the
* device's parent bridge. * device's parent bridge.
*/ */
if (!gsi) if (gsi < 0)
gsi = acpi_pci_irq_derive(dev, pin, gsi = acpi_pci_irq_derive(dev, pin,
&edge_level, &active_high_low); &edge_level, &active_high_low);
if (!gsi) if (gsi < 0)
return_VOID; return_VOID;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment