Module: xenomai-jki
Branch: for-forge
Commit: f036a24de774baf73ba68ef66fc26aac957969e5
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=f036a24de774baf73ba68ef66fc26aac957969e5

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Mon Feb 22 18:28:27 2016 +0100

cobalt/posix/timer: Remove redundant test for stopped timers

__cobalt_timer_getval already checks this.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/posix/timer.c |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/kernel/cobalt/posix/timer.c b/kernel/cobalt/posix/timer.c
index b4cd511..5e77454 100644
--- a/kernel/cobalt/posix/timer.c
+++ b/kernel/cobalt/posix/timer.c
@@ -290,14 +290,6 @@ timer_gettimeout(struct cobalt_timer *__restrict__ timer,
                                  ret, value) && ret != 0)
                return;
 
-       if (!xntimer_running_p(&timer->timerbase)) {
-               value->it_value.tv_sec = 0;
-               value->it_value.tv_nsec = 0;
-               value->it_interval.tv_sec = 0;
-               value->it_interval.tv_nsec = 0;
-               return;
-       }
-
        __cobalt_timer_getval(&timer->timerbase, value);
 }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to