From: Bartlomiej Zolnierkiewicz Date: Sun, 5 Oct 2008 16:23:28 +0000 (+0200) Subject: ide: workaround for bogus gcc warning in ide_sysfs_register_port() X-Git-Tag: v2.6.27-rc9~4^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ca09a237b8c6b053e101a4a83bc30d2c48435bd5;p=linux-2.6-omap-h63xx.git ide: workaround for bogus gcc warning in ide_sysfs_register_port() Reported-by: "Steven Noonan" Suggested-by: "Elias Oltmanns" Cc: mingo@elte.hu Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 994e41099b4..a51a30e9eab 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -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]);