]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix stupid assumption that caused headache.
authorJorrit Herder <jnherder@minix3.org>
Fri, 1 Jul 2005 17:17:13 +0000 (17:17 +0000)
committerJorrit Herder <jnherder@minix3.org>
Fri, 1 Jul 2005 17:17:13 +0000 (17:17 +0000)
Timers lib now seems to work fine again.

lib/timers/tmrs_set.c

index 79785b0bebc5ef00d56184325c8855fb39dc091f..71e56a9f59cc9c14d726789a766a593b19f68b62 100644 (file)
@@ -21,9 +21,8 @@ clock_t *new_head;                    /* new earliest timer, if non NULL */
   if(*tmrs)
        old_head = (*tmrs)->tmr_exp_time;
 
-  /* Possibly remove an old timer. Then set the timer's variables. */
-  if (tp->tmr_exp_time != TMR_NEVER)
-       (void) tmrs_clrtimer(tmrs, tp, NULL);
+  /* Set the timer's variables. */
+  (void) tmrs_clrtimer(tmrs, tp, NULL);
   tp->tmr_exp_time = exp_time;
   tp->tmr_func = watchdog;