ACPI / SBS: fix inconsistent indenting inside if statement
authorColin Ian King <colin.king@canonical.com>
Fri, 1 Jan 2016 23:53:45 +0000 (23:53 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Jan 2016 21:14:27 +0000 (22:14 +0100)
The indenting in acpi_battery_set_alarm is inconsistent and has been
so since 2007; commit 94f6c0860139da9219255b8ff45ad42117dda859
("ACPI: SBS: Add support for power_supply class (and sysfs)"). Minor
fix for this, no code functionality change.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sbs.c

index cb3dedb1beaed3b045cd0ae5dc6f338623551d5c..ad0b13ad4bbb93b2b10da64b9607db809bdba39b 100644 (file)
@@ -417,11 +417,11 @@ static int acpi_battery_set_alarm(struct acpi_battery *battery)
                if ((value & 0xf000) != sel) {
                        value &= 0x0fff;
                        value |= sel;
-               ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD,
+                       ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD,
                                         ACPI_SBS_MANAGER,
                                         0x01, (u8 *)&value, 2);
-               if (ret)
-                       goto end;
+                       if (ret)
+                               goto end;
                }
        }
        ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY,