diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-25 20:15:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-07 14:22:02 +0100 |
commit | 1c2d17839760b0d8ad5a02e4c84bd8f99fac4e98 (patch) | |
tree | ff95b47443c47377f1e9bcb7790cffb4b6e59bb0 /cpukit/rtems/src/rtemsobjectgetclassinfo.c | |
parent | score: Optimize object lookup (diff) | |
download | rtems-1c2d17839760b0d8ad5a02e4c84bd8f99fac4e98.tar.bz2 |
score: Remove Objects_Information::maximum
This information is already present in Objects_Information::maximum_id.
Add and use _Objects_Get_maximum_index().
Update #3621.
Diffstat (limited to 'cpukit/rtems/src/rtemsobjectgetclassinfo.c')
-rw-r--r-- | cpukit/rtems/src/rtemsobjectgetclassinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/rtems/src/rtemsobjectgetclassinfo.c b/cpukit/rtems/src/rtemsobjectgetclassinfo.c index 3ebe3535f5..a2b07e36ea 100644 --- a/cpukit/rtems/src/rtemsobjectgetclassinfo.c +++ b/cpukit/rtems/src/rtemsobjectgetclassinfo.c @@ -47,7 +47,7 @@ rtems_status_code rtems_object_get_class_information( info->minimum_id = _Objects_Get_minimum_id( obj_info->maximum_id ); info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; - info->maximum = obj_info->maximum; + info->maximum = _Objects_Get_maximum_index( obj_info ); for ( unallocated=0, i=1 ; i <= info->maximum ; i++ ) if ( !obj_info->local_table[i] ) |