drivers/scsi/aic7xxx/* - compile
Subsystems (3)
PATCH 12/21 drivers/scsi/aic7xxx/* - compile
Description: compile warning cleanup - handle error return from scsi_add_host
Signed-off-by Stephen Biggs <[email protected]>
drivers/scsi/aic7xxx/aic79xx_osm.c +2 -1
@@ -2065,7 +2065,8 @@ ahd_linux_register_host(struct ahd_softcahd_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
@@ -1729,7 +1729,8 @@ ahc_linux_register_host(struct ahc_softcahc_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