Skip to content

Commit

Permalink
ide: workaround for bogus gcc warning in ide_sysfs_register_port()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 5, 2008
1 parent f3e85ee commit ca09a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit ca09a23

Please sign in to comment.