From c0623a99419b18f5b29e932d298193e0245abf38 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Oct 2017 15:00:27 +0200 Subject: score: Simplify _Timestamp_Add_to() Update #2740. --- cpukit/score/include/rtems/score/timestamp.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cpukit/score/include') 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; } /** -- cgit v1.2.3