Removing unused status variable.
@@ -91,7 +91,6 @@ int clock_gettime( clockid_t clock_id,
struct timespec * tp )
{
TimeOut_t xCurrentTime = { 0 };
- int iStatus = 0;
/* Intermediate variable used to convert TimeOut_t to struct timespec.
* Also used to detect overflow issues. It must be unsigned because the
@@ -101,8 +100,6 @@ int clock_gettime( clockid_t clock_id,
/* Silence warnings about unused parameters. */
( void ) clock_id;
- if( iStatus == 0 )
- {
/* Get the current tick count and overflow count. vTaskSetTimeOutState()
* is used to get these values because they are both static in tasks.c. */
vTaskSetTimeOutState( &xCurrentTime );
@@ -116,9 +113,8 @@ int clock_gettime( clockid_t clock_id,
/* Convert ullTickCount to timespec. */
UTILS_NanosecondsToTimespec( ( int64_t ) ullTickCount * NANOSECONDS_PER_TICK, tp );
- }
- return iStatus;
+ return 0;
}
/*-----------------------------------------------------------*/
