From dbdb6a32f13a3c223aac5bdeb1e9684d5b2b886d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Sep 2017 15:14:33 +0200 Subject: posix: Remove superfluous includes --- cpukit/posix/src/mutexattrgettype.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'cpukit/posix/src/mutexattrgettype.c') 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 #include - -#include -#include -#include -#include -#include +#include #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; -- cgit v1.2.3