Skip to content

Commit 4664e32

Browse files
committed
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
2 parents 11b211e + fe8c470 commit 4664e32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/acpi/power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static int acpi_power_get_list_state(struct list_head *list, int *state)
200200
return -EINVAL;
201201

202202
/* The state of the list is 'on' IFF all resources are 'on'. */
203+
cur_state = 0;
203204
list_for_each_entry(entry, list, node) {
204205
struct acpi_power_resource *resource = entry->resource;
205206
acpi_handle handle = resource->device.handle;

0 commit comments

Comments
 (0)