]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] ips: warning fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Aug 2007 21:50:52 +0000 (14:50 -0700)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:40:14 +0000 (14:40 -0400)
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 <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ips.c

index 492a51bd6aa899bb8d64a5cf60ab304913d8d7c2..b17771b1c605e9ba94a2a98376e92ed66d9472f9 100644 (file)
@@ -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);