diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-19 14:14:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-21 07:29:40 +0200 |
commit | d7a12be9c3f1034947210d4bafa3d39fe1e74571 (patch) | |
tree | b6371a8816cb82265149fb5aa861e49ebf1598b9 /cpukit/score/src/objectgetnext.c | |
parent | 36cd27c1e3ebb3796fa486cddd36b43b7be4cb6b (diff) |
score: Optimize _Objects_Get_no_protection()
Make the id the first parameter since usual callers get the object
identifier as the first parameter themself.
Diffstat (limited to 'cpukit/score/src/objectgetnext.c')
-rw-r--r-- | cpukit/score/src/objectgetnext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/objectgetnext.c b/cpukit/score/src/objectgetnext.c index 2d4f252b97..a46c02f2c2 100644 --- a/cpukit/score/src/objectgetnext.c +++ b/cpukit/score/src/objectgetnext.c @@ -52,7 +52,7 @@ Objects_Control *_Objects_Get_next( } /* try to grab one */ - the_object = _Objects_Get_no_protection( information, next_id ); + the_object = _Objects_Get_no_protection( next_id, information ); next_id++; |