[PATCH -mm] nsp32 gcc 4.1 warning fix
From: Daniel Walker
Date: Tue May 09 2006 - 22:57:23 EST
Fixes the following warning,
drivers/scsi/nsp32.c: In function â??nsp32_detectâ??:
drivers/scsi/nsp32.c:2889: warning: ignoring return value of â??scsi_add_hostâ??, declared with attribute warn_unused_result
Signed-Off-By: Daniel Walker <dwalker@xxxxxxxxxx>
Index: linux-2.6.16/drivers/scsi/nsp32.c
===================================================================
--- linux-2.6.16.orig/drivers/scsi/nsp32.c
+++ linux-2.6.16/drivers/scsi/nsp32.c
@@ -2886,7 +2886,8 @@ static int nsp32_detect(struct scsi_host
}
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,73))
- scsi_add_host (host, &PCIDEV->dev);
+ if (scsi_add_host (host, &PCIDEV->dev))
+ return DETECT_NG;
scsi_scan_host(host);
#endif
pci_set_drvdata(PCIDEV, host);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/