diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-02-16 00:24:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-02-16 00:24:49 +0000 |
commit | a0323a9f8f673f2b4d7a70e2019fa47d3df76d96 (patch) | |
tree | 86f72a2427700fa35af175738c9efb404fae2e96 /cpukit/libmisc | |
parent | 2011-02-15 Jennifer Averett (diff) | |
download | rtems-a0323a9f8f673f2b4d7a70e2019fa47d3df76d96.tar.bz2 |
2011-02-15 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libmisc/capture/capture.c, posix/src/keyfreememory.c,
posix/src/pthread.c, score/include/rtems/score/wkspace.h,
score/src/objectextendinformation.c,
score/src/objectnamespaceremove.c, score/src/objectsetname.c,
score/src/threadclose.c, score/src/threadinitialize.c,
score/src/wkspace.c: Many places were checking for a NULL pointer
before calling _Workspace_Free. By moving the check into
_Workspace_Free, we eliminate a number of conditional paths and make
it harder to return a NULL pointer.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/capture/capture.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c index c8a18fc98e..ac1acc01ac 100644 --- a/cpukit/libmisc/capture/capture.c +++ b/cpukit/libmisc/capture/capture.c @@ -494,8 +494,7 @@ rtems_capture_destroy_capture_task (rtems_capture_task_t* task) rtems_interrupt_enable (level); - if (task) - _Workspace_Free (task); + _Workspace_Free (task); } } |