changeset 468:6389bfe95f23

os_tim_ir.c: os_StartTimer(): polish
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 26 Jun 2014 06:15:10 +0000
parents aa9aec3ba437
children 5031958cea52
files gsm-fw/gpf/osl/os_tim_ir.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_tim_ir.c	Thu Jun 26 05:49:59 2014 +0000
+++ b/gsm-fw/gpf/osl/os_tim_ir.c	Thu Jun 26 06:15:10 2014 +0000
@@ -213,9 +213,9 @@
 	}
 
 	sts = NU_Obtain_Semaphore(&TimSemCB, NU_SUSPEND);
-	/* FIXME: not sure about this
-	if (sts != NU_SUCCESS)
-		os_MyHandle(sts);
+	/* Disassembly reveals this bogon in the original code:
+		if (sts != NU_SUCCESS)
+			os_MyHandle();
 	*/
 	status = timer->status;
 	if (status == 2)
@@ -227,7 +227,8 @@
 	timer->p_ticks = TIME_TO_SYSTEM_TICKS(RescheduleTime);
 	ticks = os_add_timer_to_list(timer, TIME_TO_SYSTEM_TICKS(InitialTime));
 	if (ticks)
-		NU_Reset_Timer(&os_timer_cb, os_Timeout, ticks, 0, NU_ENABLE_TIMER);
+		NU_Reset_Timer(&os_timer_cb, os_Timeout, ticks, 0,
+				NU_ENABLE_TIMER);
 	if (sts == NU_SUCCESS)
 		NU_Release_Semaphore(&TimSemCB);
 	t_list_access = 0;