summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coretodgetuptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/coretodgetuptime.c')
-rw-r--r--cpukit/score/src/coretodgetuptime.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/score/src/coretodgetuptime.c b/cpukit/score/src/coretodgetuptime.c
index ea55a25796..c5d940b0c0 100644
--- a/cpukit/score/src/coretodgetuptime.c
+++ b/cpukit/score/src/coretodgetuptime.c
@@ -45,11 +45,9 @@ void _TOD_Get_uptime(
/* assume time checked for NULL by caller */
/* _TOD_Uptime is in native timestamp format */
- nanoseconds = 0;
_ISR_Disable( level );
up = _TOD_Uptime;
- if ( _Watchdog_Nanoseconds_since_tick_handler )
- nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();
+ nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();
_ISR_Enable( level );
_Timestamp_Set( &offset, 0, nanoseconds );