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

Commit 3d5b1386 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am 2024f1a5: Merge "Fix error in tick calculation when timer is removed" into lmp-dev

* commit '2024f1a5':
  Fix error in tick calculation when timer is removed
parents 0766e9fa 2024f1a5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -704,9 +704,6 @@ BOOLEAN GKI_remove_from_timer_list (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT
    if (p_tle == NULL || p_timer_listq->p_first == NULL)
        return FALSE;

    p_tle->ticks = 0;
    p_tle->in_use = FALSE;

    /* Add the ticks remaining in this timer (if any) to the next guy in the list.
    ** Note: Expired timers have a tick value of '0'.
    */
@@ -715,6 +712,9 @@ BOOLEAN GKI_remove_from_timer_list (TIMER_LIST_Q *p_timer_listq, TIMER_LIST_ENT
        p_tle->p_next->ticks += p_tle->ticks;
    }

    p_tle->ticks = 0;
    p_tle->in_use = FALSE;

    /* Unlink timer from the list.
    */
    if (p_timer_listq->p_first == p_tle)