power: Allow POWER_HINT_DISABLE_TOUCH in low power mode
authorChristopher N. Hesse <raymanfx@gmail.com>
Mon, 19 Feb 2018 22:20:14 +0000 (23:20 +0100)
committerChristopher N. Hesse <raymanfx@gmail.com>
Fri, 23 Feb 2018 18:24:01 +0000 (18:24 +0000)
Remove the unused len var while we're at it.

Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5

power/power.c

index ac61d3fb50738924d30135f5edad0243d3edf906..a34a5b5f01f9c0c5d4086a83779be7aa7e7e456e 100644 (file)
@@ -477,11 +477,10 @@ static void samsung_power_hint(struct power_module *module,
                                   void *data)
 {
     struct samsung_power_module *samsung_pwr = (struct samsung_power_module *) module;
-    int len;
 
     /* Bail out if low-power mode is active */
     if (current_power_profile == PROFILE_POWER_SAVE && hint != POWER_HINT_LOW_POWER
-            && hint != POWER_HINT_SET_PROFILE) {
+            && hint != POWER_HINT_SET_PROFILE && hint != POWER_HINT_DISABLE_TOUCH) {
         ALOGV("%s: PROFILE_POWER_SAVE active, ignoring hint %d", __func__, hint);
         return;
     }