summaryrefslogtreecommitdiff
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorAl Stone <al.stone@linaro.org>2013-12-16 17:01:37 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-12-19 16:15:11 +0100
commit43575faab3967b7b48aeb1c30f823b8233517552 (patch)
tree1842e4f6a9cf642b452005b2dce38e9dab0c768f /drivers/acpi/processor_idle.c
parentd0a7edbb6608d05b0718a0949be914067b5980fb (diff)
ACPI / processor: initialize a variable to silence compiler warning
In acpi_processor_resume(), the variable resumed_bm_rld is being used without being initialized, so initialize it. Signed-off-by: Al Stone <al.stone@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index a0cc5ef4f06f..799644c3888c 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -211,7 +211,7 @@ static int acpi_processor_suspend(void)
static void acpi_processor_resume(void)
{
- u32 resumed_bm_rld;
+ u32 resumed_bm_rld = 0;
acpi_read_bit_register(ACPI_BITREG_BUS_MASTER_RLD, &resumed_bm_rld);
if (resumed_bm_rld == saved_bm_rld)