From 730de199b389e83da8d3935f82e78e30b9876b56 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Wed, 22 Jun 2016 17:55:40 +0300 Subject: [PATCH] ACPI / PMIC: intel: initialize result to 0 Fixes compiler warning. Signed-off-by: Felipe Balbi Signed-off-by: Heikki Krogerus Signed-off-by: Rafael J. Wysocki --- drivers/acpi/pmic/intel_pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/pmic/intel_pmic.c b/drivers/acpi/pmic/intel_pmic.c index e107e277e8b3..6585affc3e26 100644 --- a/drivers/acpi/pmic/intel_pmic.c +++ b/drivers/acpi/pmic/intel_pmic.c @@ -216,7 +216,7 @@ static acpi_status intel_pmic_regs_handler(u32 function, void *handler_context, void *region_context) { struct intel_pmic_opregion *opregion = region_context; - int result; + int result = 0; switch (address) { case 0: -- 2.20.1