diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-27 15:14:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-09-27 15:33:01 +0200 |
commit | dbdb6a32f13a3c223aac5bdeb1e9684d5b2b886d (patch) | |
tree | 3dd79d5aa201ff8f3bfbe1a1101ce6670ac38cce /cpukit/posix/src/mutexattrgettype.c | |
parent | e2fe881a87331e7e20dab95126a8860e42cdddf0 (diff) |
posix: Remove superfluous includes
Diffstat (limited to 'cpukit/posix/src/mutexattrgettype.c')
-rw-r--r-- | cpukit/posix/src/mutexattrgettype.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/cpukit/posix/src/mutexattrgettype.c b/cpukit/posix/src/mutexattrgettype.c index 3c12dcbc89..61b6d587ef 100644 --- a/cpukit/posix/src/mutexattrgettype.c +++ b/cpukit/posix/src/mutexattrgettype.c @@ -20,12 +20,7 @@ #include <errno.h> #include <pthread.h> - -#include <rtems/system.h> -#include <rtems/score/coremuteximpl.h> -#include <rtems/score/watchdog.h> -#include <rtems/posix/muteximpl.h> -#include <rtems/posix/priorityimpl.h> +#include <stddef.h> #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) int pthread_mutexattr_gettype( @@ -33,13 +28,7 @@ int pthread_mutexattr_gettype( int *type ) { - if ( !attr ) - return EINVAL; - - if ( !attr->is_initialized ) - return EINVAL; - - if ( !type ) + if ( attr == NULL || !attr->is_initialized || type == NULL ) return EINVAL; *type = attr->type; |