aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-05 18:23:28 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-10-05 18:23:28 +0200
commitca09a237b8c6b053e101a4a83bc30d2c48435bd5 (patch)
treead35677483b4e926c4d4e9bbce9d59842876f380
parentf3e85ee70a8dd18e6ffa933ae4065a7031837cf3 (diff)
downloadkernel_samsung_smdk4412-ca09a237b8c6b053e101a4a83bc30d2c48435bd5.zip
kernel_samsung_smdk4412-ca09a237b8c6b053e101a4a83bc30d2c48435bd5.tar.gz
kernel_samsung_smdk4412-ca09a237b8c6b053e101a4a83bc30d2c48435bd5.tar.bz2
ide: workaround for bogus gcc warning in ide_sysfs_register_port()
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>
-rw-r--r--drivers/ide/ide-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 994e410..a51a30e 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]);