==== //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c#57 - /home/gibbs/bk/linux-2.4/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c ====
--- /tmp/tmp.6124.0	2004-05-22 21:30:02.000000000 -0600
+++ /home/gibbs/bk/linux-2.4/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c	2004-05-22 21:25:14.000000000 -0600
@@ -323,7 +323,8 @@
 		error = ahc_linux_pci_reserve_io_region(ahc, &base);
 		ahc->tag = BUS_SPACE_PIO;
 		ahc->bsh.ioport = base;
-		if (error == 0 && ahc_pci_test_register_access(ahc) == 0) {
+		if (error == 0
+		 && (error = ahc_pci_test_register_access(ahc)) == 0) {
 			command |= PCIM_CMD_PORTEN;
 		} else {
 			ahc->bsh.ioport = 0;
