Skip to contentSkip to conversation

ACPI / SBS: fix inconsistent indenting inside if statement

PATCH Applied Colin King 2 participants 2 messages Jan 1, 2016 – Jan 5, 2016 ACPI

lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 ACPI / SBS: fix inconsistent indenting inside if statement

From: Colin Ian King <[email protected]>

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.

---
 drivers/acpi/sbs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/sbs.c +3 -3
index cb3dedb..ad0b13a 100644
@@ -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,
Signature · 1 line
2.6.4
#1 lore raw
Quoted 8 lines · Colin King

From: Colin Ian King <[email protected]>

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.

Applied, thanks!

Rafael