summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/free.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-24 15:20:25 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-25 16:08:16 +0100
commit0273349594cd2f87a839bdaf2c33ad7fd26c81f5 (patch)
treec7ed39c984a104aa72024a145c889573d00ed7e9 /cpukit/libcsupport/src/free.c
parentarm: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC (diff)
downloadrtems-0273349594cd2f87a839bdaf2c33ad7fd26c81f5.tar.bz2
libcsupport: malloc_is_system_state_OK()
Move system state check to malloc_is_system_state_OK().
Diffstat (limited to 'cpukit/libcsupport/src/free.c')
-rw-r--r--cpukit/libcsupport/src/free.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/free.c b/cpukit/libcsupport/src/free.c
index 7bc8e47825..2a7e3d931d 100644
--- a/cpukit/libcsupport/src/free.c
+++ b/cpukit/libcsupport/src/free.c
@@ -36,8 +36,7 @@ void free(
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
- if ( _System_state_Is_up(_System_state_Get()) &&
- !malloc_is_system_state_OK() ) {
+ if ( !malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
return;
}