From: Christopher N. Hesse Date: Mon, 11 Jul 2016 13:49:49 +0000 (+0200) Subject: power: Fix I/O business parameter setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2879c69f2b39ec7a0c1fbaa54bb2bdcf60fd5b6a;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git power: Fix I/O business parameter setting This parameter should be set even if we bail out early. Change-Id: Iae78a13db229538960f1c7ec4c1f95f530810d71 --- diff --git a/power/power.c b/power/power.c index 72298c6..f54c72f 100644 --- a/power/power.c +++ b/power/power.c @@ -403,9 +403,8 @@ static void samsung_power_set_interactive(struct power_module *module, int on) sysfs_write(samsung_pwr->touchkey_power_path, "1"); } - sysfs_write(IO_IS_BUSY_PATH, on ? "1" : "0"); - out: + sysfs_write(IO_IS_BUSY_PATH, on ? "1" : "0"); ALOGV("power_set_interactive: %d done\n", on); }