patch-2.4.20 linux-2.4.20/drivers/hotplug/cpqphp_pci.c

Next file: linux-2.4.20/drivers/hotplug/ibmphp.h
Previous file: linux-2.4.20/drivers/hotplug/cpqphp_nvram.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/hotplug/cpqphp_pci.c linux-2.4.20/drivers/hotplug/cpqphp_pci.c
@@ -358,8 +358,8 @@
 	    dev_num, bus_num, int_pin, irq_num);
 	rc = pcibios_set_irq_routing(&fakedev, int_pin - 0x0a, irq_num);
 	dbg(__FUNCTION__":rc %d\n", rc);
-	if (rc)
-		return rc;
+	if (!rc)
+		return !rc;
 
 	// set the Edge Level Control Register (ELCR)
 	temp_word = inb(0x4d0);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)