summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/keysetspecific.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/keysetspecific.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/keysetspecific.c')
-rw-r--r--cpukit/posix/src/keysetspecific.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/posix/src/keysetspecific.c b/cpukit/posix/src/keysetspecific.c
index 8e4b3a43ca..427fff3d03 100644
--- a/cpukit/posix/src/keysetspecific.c
+++ b/cpukit/posix/src/keysetspecific.c
@@ -38,7 +38,6 @@ int pthread_setspecific(
Objects_Locations location;
POSIX_Keys_Key_value_pair *value_pair_ptr;
RBTree_Node *p;
- POSIX_Keys_Key_value_pair search_node;
Thread_Control *executing;
the_key = _POSIX_Keys_Get( key, &location );
@@ -46,7 +45,7 @@ int pthread_setspecific(
case OBJECTS_LOCAL:
executing = _Thread_Executing;
- p = _POSIX_Keys_Find( key, executing, &search_node );
+ p = _POSIX_Keys_Find( key, executing );
if ( p != NULL ) {
value_pair_ptr = POSIX_KEYS_RBTREE_NODE_TO_KEY_VALUE_PAIR( p );
value_pair_ptr->value = RTEMS_DECONST( void *, value );