Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 581a8392 authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

Native wakelock: don't crash on failure am: 108006f3

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1771905

Change-Id: I1d1dd696cddb3d9b828e951c67e9e6c134910ee1
parents 4cbdb217 108006f3
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -196,7 +196,6 @@ static void wakelock_initialize_native(void) {
  if (wake_lock_fd == INVALID_FD) {
    LOG_ERROR("%s can't open wake lock %s: %s", __func__,
              wake_lock_path.c_str(), strerror(errno));
    CHECK(wake_lock_fd != INVALID_FD);
  }

  if (wake_unlock_path.empty()) wake_unlock_path = DEFAULT_WAKE_UNLOCK_PATH;
@@ -205,7 +204,6 @@ static void wakelock_initialize_native(void) {
  if (wake_unlock_fd == INVALID_FD) {
    LOG_ERROR("%s can't open wake unlock %s: %s", __func__,
              wake_unlock_path.c_str(), strerror(errno));
    CHECK(wake_unlock_fd != INVALID_FD);
  }
}