Module: xenomai-forge
Branch: next
Commit: 5709dc849befb917e83398177121870f483a76d2
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=5709dc849befb917e83398177121870f483a76d2

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Sep 24 12:14:40 2014 +0200

alchemy/timer: drop useless return value from rt_timer_inquire()

---

 include/alchemy/timer.h |    2 +-
 lib/alchemy/timer.c     |    8 ++------
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/alchemy/timer.h b/include/alchemy/timer.h
index fc33db9..5c1cc08 100644
--- a/include/alchemy/timer.h
+++ b/include/alchemy/timer.h
@@ -139,7 +139,7 @@ SRTIME rt_timer_ticks2ns(SRTIME ticks);
 
 RTIME rt_timer_read(void);
 
-int rt_timer_inquire(RT_TIMER_INFO *info);
+void rt_timer_inquire(RT_TIMER_INFO *info);
 
 void rt_timer_spin(RTIME ns);
 
diff --git a/lib/alchemy/timer.c b/lib/alchemy/timer.c
index 323273c..d37a9d7 100644
--- a/lib/alchemy/timer.c
+++ b/lib/alchemy/timer.c
@@ -75,7 +75,7 @@ SRTIME rt_timer_ticks2ns(SRTIME ticks)
 }
 
 /**
- * @fn int rt_timer_inquire(RT_TIMER_INFO *info)
+ * @fn void rt_timer_inquire(RT_TIMER_INFO *info)
  * @brief Inquire about the Xenomai core timer.
  *
  * Return status information of the Xenomai core timer.
@@ -83,17 +83,13 @@ SRTIME rt_timer_ticks2ns(SRTIME ticks)
  * @param info The address of a structure the status data will be
  * written to.
  *
- * @return This service always returns 0.
- *
  * @apitags{unrestricted}
  */
-int rt_timer_inquire(RT_TIMER_INFO *info)
+void rt_timer_inquire(RT_TIMER_INFO *info)
 {
        info->period = clockobj_get_resolution(&alchemy_clock);
        info->date = clockobj_get_time(&alchemy_clock);
        info->tsc = clockobj_get_tsc();
-
-       return 0;
 }
 
 /**


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

Reply via email to