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 <[email protected]>
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]