diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-21 09:18:17 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-04-21 09:18:17 -0700 |
commit | 4664e3221bbac68a3547b82c042cec336b43931d (patch) | |
tree | c33ed96637a220fe391573e7120616ab997022fc /drivers | |
parent | 11b211ede81d7a077b7bc084ccfb4d6d715c5bf0 (diff) | |
parent | fe8c470ab87d90e4b5115902dd94eced7e3305c3 (diff) | |
download | linux-4664e3221bbac68a3547b82c042cec336b43931d.tar.bz2 |
Merge tag 'acpi-4.11-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI build fix from Rafael Wysocki:
"This avoids a false-positive build warning from the compiler.
Specifics:
- Avoid a false-positive warning regarding a variable that may not be
initialized that started to trigger after a previous general build
fix (Arnd Bergmann)"
* tag 'acpi-4.11-final' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
ACPI / power: Avoid maybe-uninitialized warning
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/power.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index fcd4ce6f78d5..1c2b846c5776 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c @@ -200,6 +200,7 @@ static int acpi_power_get_list_state(struct list_head *list, int *state) return -EINVAL; /* The state of the list is 'on' IFF all resources are 'on'. */ + cur_state = 0; list_for_each_entry(entry, list, node) { struct acpi_power_resource *resource = entry->resource; acpi_handle handle = resource->device.handle; |