[PATCH 1/3] score: Simplify _Timestamp_Add_to()
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Oct 6 13:45:36 UTC 2017
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 8b1a73816a..ec297f93e8 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;
}
/**
--
2.12.3
More information about the devel
mailing list