summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--power.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/power.cpp b/power.cpp
index 6041207..147903d 100644
--- a/power.cpp
+++ b/power.cpp
@@ -70,9 +70,8 @@ int acquire_wake_lock(int, const char* id) {
LOG(ERROR) << "ISuspendService::acquireWakeLock() call failed: "
<< status.getDescription();
return -1;
- } else {
- gWakeLockMap[id] = wl;
}
+ gWakeLockMap[id] = wl;
}
return 0;
}