diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-24 15:20:25 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-25 16:08:16 +0100 |
commit | 0273349594cd2f87a839bdaf2c33ad7fd26c81f5 (patch) | |
tree | c7ed39c984a104aa72024a145c889573d00ed7e9 /cpukit/libcsupport/src/rtems_memalign.c | |
parent | arm: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC (diff) | |
download | rtems-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/rtems_memalign.c')
-rw-r--r-- | cpukit/libcsupport/src/rtems_memalign.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/rtems_memalign.c b/cpukit/libcsupport/src/rtems_memalign.c index d991f57615..1b9c6bc4b3 100644 --- a/cpukit/libcsupport/src/rtems_memalign.c +++ b/cpukit/libcsupport/src/rtems_memalign.c @@ -24,8 +24,6 @@ #include <stdlib.h> #include <errno.h> -#include <rtems/score/sysstate.h> - int rtems_memalign( void **pointer, size_t alignment, @@ -45,8 +43,7 @@ int rtems_memalign( /* * Do not attempt to allocate memory if not in correct system state. */ - if ( _System_state_Is_up(_System_state_Get()) && - !malloc_is_system_state_OK() ) + if ( !malloc_is_system_state_OK() ) return EINVAL; /* |