]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide: workaround for bogus gcc warning in ide_sysfs_register_port()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 5 Oct 2008 16:23:28 +0000 (18:23 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 5 Oct 2008 16:23:28 +0000 (18:23 +0200)
Reported-by: "Steven Noonan" <steven@uplinklabs.net>
Suggested-by: "Elias Oltmanns" <eo@nebensachen.de>
Cc: mingo@elte.hu
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-probe.c

index 994e41099b42e5e95ed08cce0154bb89b6e727b0..a51a30e9eab3c1e1712fc3924fa934113acef10a 100644 (file)
@@ -1492,7 +1492,7 @@ static struct device_attribute *ide_port_attrs[] = {
 
 static int ide_sysfs_register_port(ide_hwif_t *hwif)
 {
-       int i, rc;
+       int i, uninitialized_var(rc);
 
        for (i = 0; ide_port_attrs[i]; i++) {
                rc = device_create_file(hwif->portdev, ide_port_attrs[i]);