[rtems commit] score: Simplify _Timestamp_Add_to()
Sebastian Huber
sebh at rtems.org
Mon Oct 9 12:15:44 UTC 2017
Module: rtems
Branch: master
Commit: c0623a99419b18f5b29e932d298193e0245abf38
Changeset: http://git.rtems.org/rtems/commit/?id=c0623a99419b18f5b29e932d298193e0245abf38
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Oct 6 15:00:27 2017 +0200
score: Simplify _Timestamp_Add_to()
Update #2740.
---
cpukit/score/include/rtems/score/timestamp.h | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/cpukit/score/include/rtems/score/timestamp.h b/cpukit/score/include/rtems/score/timestamp.h
index 8b1a738..ec297f9 100644
--- a/cpukit/score/include/rtems/score/timestamp.h
+++ b/cpukit/score/include/rtems/score/timestamp.h
@@ -175,19 +175,13 @@ RTEMS_INLINE_ROUTINE bool _Timestamp_Equal_to(
*
* @param[in] _time points to the base time to be added to
* @param[in] _add points to the timestamp to add to the first argument
- *
- * @retval This method returns the number of seconds @a time increased by.
*/
-RTEMS_INLINE_ROUTINE time_t _Timestamp_Add_to(
+RTEMS_INLINE_ROUTINE void _Timestamp_Add_to(
Timestamp_Control *_time,
const Timestamp_Control *_add
)
{
- time_t seconds = _time->sec;
-
bintime_add( _time, _add );
-
- return _time->sec - seconds;
}
/**
More information about the vc
mailing list