summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/keydelete.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-22 00:09:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-22 00:09:31 +0000
commit12a191ae15f78ba4a7df15b2bea6d74aa8aff707 (patch)
tree91f07e9c2b9c0d3a760edfd3593799c028543646 /cpukit/posix/src/keydelete.c
parent2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-12a191ae15f78ba4a7df15b2bea6d74aa8aff707.tar.bz2
2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/include/rtems/posix/key.h, posix/src/keycreate.c, posix/src/keydelete.c, posix/src/keyrundestructors.c: Restructure a bit to make it easier to do coverage analysis. Eliminate is_active member of control structure because it was redundant with very the key object was open or closed.
Diffstat (limited to 'cpukit/posix/src/keydelete.c')
-rw-r--r--cpukit/posix/src/keydelete.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/posix/src/keydelete.c b/cpukit/posix/src/keydelete.c
index 0abfee14c7..d4c58dd4cc 100644
--- a/cpukit/posix/src/keydelete.c
+++ b/cpukit/posix/src/keydelete.c
@@ -42,11 +42,7 @@ int pthread_key_delete(
case OBJECTS_LOCAL:
_Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
- the_key->is_active = false;
-
- for ( the_api = 1;
- the_api <= OBJECTS_APIS_LAST;
- the_api++ )
+ for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )
if ( the_key->Values[ the_api ] )
_Workspace_Free( the_key->Values[ the_api ] );