FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/gpf/osl/os_tim_ir.c @ 466:d43bf2d301de
os_tim_ir.c: os_remove_timer_from_list(): minor cosmetic polish
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 26 Jun 2014 05:08:44 +0000 |
parents | d5cf423dad3a |
children | aa9aec3ba437 |
comparison
equal
deleted
inserted
replaced
465:d5cf423dad3a | 466:d43bf2d301de |
---|---|
104 | 104 |
105 t_list_access = 0; | 105 t_list_access = 0; |
106 return; | 106 return; |
107 } | 107 } |
108 | 108 |
109 static int os_remove_timer_from_list(T_OS_TIMER_TABLE_ENTRY *timer) | 109 static int |
110 os_remove_timer_from_list(T_OS_TIMER_TABLE_ENTRY *timer) | |
110 { | 111 { |
111 OS_TICK c_ticks; | 112 OS_TICK c_ticks; |
112 | 113 |
113 if (timer != t_running) { | 114 if (timer != t_running) { |
114 if (timer->next != t_running) | 115 if (timer->next != t_running) |
115 timer->next->r_ticks += timer->r_ticks; | 116 timer->next->r_ticks += timer->r_ticks; |
116 } | 117 } else { |
117 else { | |
118 c_ticks = NU_Retrieve_Clock(); | 118 c_ticks = NU_Retrieve_Clock(); |
119 if (timer->next == timer) { | 119 if (timer->next == timer) { |
120 t_running = 0; | 120 t_running = 0; |
121 } else { | 121 } else { |
122 timer->next->r_ticks = | 122 timer->next->r_ticks = |