diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-19 14:12:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:40 +0200 |
commit | 36cd27c1e3ebb3796fa486cddd36b43b7be4cb6b (patch) | |
tree | ef589792781b889c8bf8bee1e46c13815770a575 /cpukit/score/src/objectgetnext.c | |
parent | score: Simplify _Objects_Initialize_information() (diff) | |
download | rtems-36cd27c1e3ebb3796fa486cddd36b43b7be4cb6b.tar.bz2 |
score: Simplify _Objects_Get_next()
Remove unused location parameter.
Diffstat (limited to 'cpukit/score/src/objectgetnext.c')
-rw-r--r-- | cpukit/score/src/objectgetnext.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/cpukit/score/src/objectgetnext.c b/cpukit/score/src/objectgetnext.c index c0ebbbed98..2d4f252b97 100644 --- a/cpukit/score/src/objectgetnext.c +++ b/cpukit/score/src/objectgetnext.c @@ -20,12 +20,10 @@ #include <rtems/score/objectimpl.h> -Objects_Control * -_Objects_Get_next( - Objects_Information *information, - Objects_Id id, - Objects_Locations *location_p, - Objects_Id *next_id_p +Objects_Control *_Objects_Get_next( + Objects_Id id, + const Objects_Information *information, + Objects_Id *next_id_p ) { Objects_Control *the_object; @@ -34,9 +32,6 @@ _Objects_Get_next( if ( !information ) return NULL; - if ( !location_p ) - return NULL; - if ( !next_id_p ) return NULL; @@ -52,7 +47,6 @@ _Objects_Get_next( if (_Objects_Get_index(next_id) > information->maximum) { _Objects_Allocator_unlock(); - *location_p = OBJECTS_ERROR; *next_id_p = OBJECTS_ID_FINAL; return NULL; } @@ -64,7 +58,6 @@ _Objects_Get_next( } while ( the_object == NULL ); - *location_p = OBJECTS_LOCAL; *next_id_p = next_id; return the_object; } |