summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutexattrgettype.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-27 15:14:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-09-27 15:33:01 +0200
commitdbdb6a32f13a3c223aac5bdeb1e9684d5b2b886d (patch)
tree3dd79d5aa201ff8f3bfbe1a1101ce6670ac38cce /cpukit/posix/src/mutexattrgettype.c
parentscore: Simplify red-black tree debug support (diff)
downloadrtems-dbdb6a32f13a3c223aac5bdeb1e9684d5b2b886d.tar.bz2
posix: Remove superfluous includes
Diffstat (limited to 'cpukit/posix/src/mutexattrgettype.c')
-rw-r--r--cpukit/posix/src/mutexattrgettype.c15
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;