diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-02-05 20:57:49 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-05 20:57:49 -0500 |
commit | 1dcfdf93f66375567ec563de74bbb8c295ac88df (patch) | |
tree | 30966d7813c9624336dfe4c09b5c6365b99fec49 | |
parent | 7c7e92a9268965e08bba853ecdb94fa55e886741 (diff) |
drivers/ide/ide-acpi.c: fix uninitialized var warning
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>
-rw-r--r-- | drivers/ide/ide-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c index 25aaeae1e830..e07b189f3ec8 100644 --- a/drivers/ide/ide-acpi.c +++ b/drivers/ide/ide-acpi.c | |||
@@ -171,7 +171,7 @@ err: | |||
171 | static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) | 171 | static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) |
172 | { | 172 | { |
173 | struct device *dev = hwif->gendev.parent; | 173 | struct device *dev = hwif->gendev.parent; |
174 | acpi_handle dev_handle; | 174 | acpi_handle uninitialized_var(dev_handle); |
175 | acpi_integer pcidevfn; | 175 | acpi_integer pcidevfn; |
176 | acpi_handle chan_handle; | 176 | acpi_handle chan_handle; |
177 | int err; | 177 | int err; |