summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulercbsgetexecutiontime.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulercbsgetexecutiontime.c')
-rw-r--r--cpukit/score/src/schedulercbsgetexecutiontime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulercbsgetexecutiontime.c b/cpukit/score/src/schedulercbsgetexecutiontime.c
index 2461d76816..5cea3101c0 100644
--- a/cpukit/score/src/schedulercbsgetexecutiontime.c
+++ b/cpukit/score/src/schedulercbsgetexecutiontime.c
@@ -27,7 +27,7 @@ int _Scheduler_CBS_Get_execution_time (
Objects_Locations location;
Thread_Control *the_thread;
- if ( server_id < 0 || server_id >= _Scheduler_CBS_Maximum_servers )
+ if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;