From: Andrew Morton Date: Fri, 10 Aug 2007 21:50:52 +0000 (-0700) Subject: [SCSI] ips: warning fix X-Git-Tag: v2.6.24-rc1~1290^2~164 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=305aad0bf5b3f890bf6f59f8045bd553fd1051df;p=linux-2.6-omap-h63xx.git [SCSI] ips: warning fix drivers/scsi/ips.c: In function 'ips_insert_device': drivers/scsi/ips.c:6957: warning: 'index' may be used uninitialized in this function Signed-off-by: Andrew Morton Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index 492a51bd6aa..b17771b1c60 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -6946,7 +6946,7 @@ module_exit(ips_module_exit); static int __devinit ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent) { - int index; + int uninitialized_var(index); int rc; METHOD_TRACE("ips_insert_device", 1);