]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/ide/ide-acpi.c: fix uninitialized var warning
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Feb 2008 01:57:49 +0000 (02:57 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 6 Feb 2008 01:57:49 +0000 (02:57 +0100)
drivers/ide/ide-acpi.c: In function 'ide_acpi_init':
drivers/ide/ide-acpi.c:175: warning: 'dev_handle' may be used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-acpi.c

index 25aaeae1e830052fbfe9c7754dc2e2fd8acdf3cd..e07b189f3ec8504d7f2b19628253855f884ba2c6 100644 (file)
@@ -171,7 +171,7 @@ err:
 static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif)
 {
        struct device           *dev = hwif->gendev.parent;
-       acpi_handle             dev_handle;
+       acpi_handle             uninitialized_var(dev_handle);
        acpi_integer            pcidevfn;
        acpi_handle             chan_handle;
        int                     err;