[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1466607340-88687-3-git-send-email-heikki.krogerus@linux.intel.com>
Date: Wed, 22 Jun 2016 17:55:40 +0300
From: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
To: "Rafael J. Wysocki" <rjw@...ysocki.net>
Cc: Felipe Balbi <felipe.balbi@...ux.intel.com>,
Bin Gao <bin.gao@...ux.intel.com>, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] acpi: pmic: intel: initialize result to 0
From: Felipe Balbi <felipe.balbi@...ux.intel.com>
Fixes compiler warning.
Signed-off-by: Felipe Balbi <felipe.balbi@...ux.intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
---
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 3a3d416..1742718 100644
--- a/drivers/acpi/pmic/intel_pmic.c
+++ b/drivers/acpi/pmic/intel_pmic.c
@@ -215,7 +215,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.8.1
Powered by blists - more mailing lists