diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-12 11:19:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-12 13:16:03 +0100 |
commit | dac340dd663bdfed29470c1327a2e7d10dbfa002 (patch) | |
tree | bd3acfbf94b5617d704bccd07de00179585d6fe0 /cpukit/posix/src/keysetspecific.c | |
parent | confdefs.h: Fix workspace size if idle task is FP (diff) | |
download | rtems-dac340dd663bdfed29470c1327a2e7d10dbfa002.tar.bz2 |
posix: Simplify _POSIX_Keys_Find()
Diffstat (limited to 'cpukit/posix/src/keysetspecific.c')
-rw-r--r-- | cpukit/posix/src/keysetspecific.c | 3 |
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 ); |