Fixed minor typos in timers_rtai.c and timers_xeno.c
authoretisserant
Wed, 04 Jun 2008 10:53:41 +0200
changeset 468 787a54d068d6
parent 467 40efa79d27dd
child 469 f2b07ea215b5
Fixed minor typos in timers_rtai.c and timers_xeno.c
drivers/timers_rtai/timers_rtai.c
drivers/timers_xeno/timers_xeno.c
--- a/drivers/timers_rtai/timers_rtai.c	Mon Jun 02 08:52:06 2008 +0200
+++ b/drivers/timers_rtai/timers_rtai.c	Wed Jun 04 10:53:41 2008 +0200
@@ -217,7 +217,7 @@
 void setTimer(TIMEVAL value)
 {
 	rt_sem_wait(condition_mutex);
-	last_timeout_set = (value == TIMEVAL_MAX) ? TIMEVAL_MAX : value;
+	last_timeout_set = value;
 	rt_sem_signal(condition_mutex);
 	rt_cond_signal(timer_set);
 }
--- a/drivers/timers_xeno/timers_xeno.c	Mon Jun 02 08:52:06 2008 +0200
+++ b/drivers/timers_xeno/timers_xeno.c	Wed Jun 04 10:53:41 2008 +0200
@@ -238,7 +238,7 @@
 void setTimer(TIMEVAL value)
 {
 	rt_mutex_acquire(&condition_mutex, TM_INFINITE);
-	last_timeout_set = (value == TIMEVAL_MAX) ? TIMEVAL_MAX : value;
+	last_timeout_set = value;
 	rt_mutex_release(&condition_mutex);
 	rt_cond_signal(&timer_set);
 }