diff options
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; |