summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectgetnext.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-19 14:14:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:40 +0200
commitd7a12be9c3f1034947210d4bafa3d39fe1e74571 (patch)
treeb6371a8816cb82265149fb5aa861e49ebf1598b9 /cpukit/score/src/objectgetnext.c
parentscore: Simplify _Objects_Get_next() (diff)
downloadrtems-d7a12be9c3f1034947210d4bafa3d39fe1e74571.tar.bz2
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.c2
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++;