Skip to content

Commit

Permalink
ACPI / sleep: clean up compiler warning about uninitialized field
Browse files Browse the repository at this point in the history
Initialize pwr_btn_status as disabled which (a) makes sure it is
in a proper state to start, and (b) cleans up a compiler warning
about an uninitialized variable.

Signed-off-by: Al Stone <al.stone@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Al Stone authored and Rafael J. Wysocki committed Nov 21, 2013
1 parent 82023bb commit 51468a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
* generate wakeup events.
*/
if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3)) {
acpi_event_status pwr_btn_status;
acpi_event_status pwr_btn_status = ACPI_EVENT_FLAG_DISABLED;

acpi_get_event_status(ACPI_EVENT_POWER_BUTTON, &pwr_btn_status);

Expand Down

0 comments on commit 51468a9

Please sign in to comment.