summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/keygetspecific.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-12 11:19:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-12 13:16:03 +0100
commitdac340dd663bdfed29470c1327a2e7d10dbfa002 (patch)
treebd3acfbf94b5617d704bccd07de00179585d6fe0 /cpukit/posix/src/keygetspecific.c
parentconfdefs.h: Fix workspace size if idle task is FP (diff)
downloadrtems-dac340dd663bdfed29470c1327a2e7d10dbfa002.tar.bz2
posix: Simplify _POSIX_Keys_Find()
Diffstat (limited to 'cpukit/posix/src/keygetspecific.c')
-rw-r--r--cpukit/posix/src/keygetspecific.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/posix/src/keygetspecific.c b/cpukit/posix/src/keygetspecific.c
index 5ab37a7553..ef6c19d56c 100644
--- a/cpukit/posix/src/keygetspecific.c
+++ b/cpukit/posix/src/keygetspecific.c
@@ -40,7 +40,6 @@ void *pthread_getspecific(
{
POSIX_Keys_Control *the_key;
Objects_Locations location;
- POSIX_Keys_Key_value_pair search_node;
RBTree_Node *p;
void *key_data;
POSIX_Keys_Key_value_pair *value_pair_p;
@@ -49,7 +48,7 @@ void *pthread_getspecific(
switch ( location ) {
case OBJECTS_LOCAL:
- p = _POSIX_Keys_Find( key, _Thread_Executing, &search_node );
+ p = _POSIX_Keys_Find( key, _Thread_Executing );
if ( p != NULL ) {
value_pair_p = POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( p );
key_data = value_pair_p->value;