Skip to contentSkip to conversation

drivers/scsi/aic7xxx/* - compile

PATCH In review Stephen Biggs 1 participant 1 message Feb 14, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 12/21 drivers/scsi/aic7xxx/* - compile

Description: compile warning cleanup - handle error return from scsi_add_host

drivers/scsi/aic7xxx/aic79xx_osm.c +2 -1
diff -Nurdp -X dontdiff-osdl linux-2.6.11-rc3-mm2-original/drivers/scsi/aic7xxx/aic79xx_osm.c linux-2.6.11-rc3-mm2/drivers/scsi/aic7xxx/aic79xx_osm.c
@@ -2065,7 +2065,8 @@ ahd_linux_register_host(struct ahd_softc
 	ahd_unlock(ahd, &s);
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
-	scsi_add_host(host, &ahd->dev_softc->dev); /* XXX handle failure */
+	if (scsi_add_host(host, &ahd->dev_softc->dev))
+		return (EIO);
 	scsi_scan_host(host);
 #endif
 	return (0);
drivers/scsi/aic7xxx/aic7xxx_osm.c +2 -1
diff -Nurdp -X dontdiff-osdl linux-2.6.11-rc3-mm2-original/drivers/scsi/aic7xxx/aic7xxx_osm.c linux-2.6.11-rc3-mm2/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -1729,7 +1729,8 @@ ahc_linux_register_host(struct ahc_softc
 	ahc_unlock(ahc, &s);
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
-	scsi_add_host(host, (ahc->dev_softc ? &ahc->dev_softc->dev : NULL)); /* XXX handle failure */
+	if (scsi_add_host(host, (ahc->dev_softc ? &ahc->dev_softc->dev : NULL)))
+		return (EIO);
 	scsi_scan_host(host);
 #endif
 	return (0);

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors