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

Commit 826f4737 authored by Hansong Zhang's avatar Hansong Zhang Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: Ia9dc746a2d574eb23025451438b3fa59d2bf629a
parents c8d65310 581a8392
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);
  }
}