]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPI / PMIC: intel: initialize result to 0
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Jun 2016 14:55:40 +0000 (17:55 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jun 2016 13:24:09 +0000 (15:24 +0200)
Fixes compiler warning.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pmic/intel_pmic.c

index e107e277e8b3a32556dcf058b86410c6518b6947..6585affc3e2624345e043b225d70044fd6649951 100644 (file)
@@ -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: