summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-06 15:00:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-09 08:17:17 +0200
commitc0623a99419b18f5b29e932d298193e0245abf38 (patch)
tree9c68caa377a3a5828c8b2ebc8e4213a1eaafb86b /cpukit/score/include/rtems
parentbsps/powerpc: Fix robust thread dispatch again (diff)
downloadrtems-c0623a99419b18f5b29e932d298193e0245abf38.tar.bz2
score: Simplify _Timestamp_Add_to()
Update #2740.
Diffstat (limited to 'cpukit/score/include/rtems')
-rw-r--r--cpukit/score/include/rtems/score/timestamp.h8
1 files changed, 1 insertions, 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;
}
/**