From: John Hodge Date: Thu, 11 Jul 2013 06:30:43 +0000 (+0800) Subject: Kernel/timers - Fixed bad assertions X-Git-Tag: rel0.15~363 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ade876493f79b1b96a2fb529fc515a78964a1249;p=tpg%2Facess2.git Kernel/timers - Fixed bad assertions --- diff --git a/KernelLand/Kernel/time.c b/KernelLand/Kernel/time.c index 05b749d6..29d8ddb1 100644 --- a/KernelLand/Kernel/time.c +++ b/KernelLand/Kernel/time.c @@ -137,7 +137,7 @@ void Time_ScheduleTimer(tTimer *Timer, int Delta) // Mutex_Release( &Timer->Lock ); // Prevent deadlocks for( prev_next = &gTimers, t = gTimers; t; prev_next = &t->Next, t = t->Next ) { - ASSERTC( *prev_next, !=, t ); + ASSERT( prev_next != &t->Next ); ASSERT( CheckMem(t, sizeof(tTimer)) ); if( t == Timer ) { @@ -168,7 +168,8 @@ void Time_RemoveTimer(tTimer *Timer) SHORTLOCK(&gTimers_ListLock); for( prev_next = &gTimers, t = gTimers; t; prev_next = &t->Next, t = t->Next ) { - ASSERT( *prev_next != t ); ASSERT( CheckMem(t, sizeof(tTimer)) ); + ASSERT( prev_next != &t->Next ); + ASSERT( CheckMem(t, sizeof(tTimer)) ); if( t == Timer ) { *prev_next = t->Next;