summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mqueuerecvsupp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/mqueuerecvsupp.c')
-rw-r--r--cpukit/posix/src/mqueuerecvsupp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/posix/src/mqueuerecvsupp.c b/cpukit/posix/src/mqueuerecvsupp.c
index 93fd000222..914db9f937 100644
--- a/cpukit/posix/src/mqueuerecvsupp.c
+++ b/cpukit/posix/src/mqueuerecvsupp.c
@@ -55,14 +55,11 @@ ssize_t _POSIX_Message_queue_Receive_support(
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
- case OBJECTS_ERROR:
- rtems_set_errno_and_return_minus_one( EBADF );
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
- _Thread_Dispatch();
- return POSIX_MP_NOT_IMPLEMENTED();
- rtems_set_errno_and_return_minus_one( EINVAL );
#endif
+ case OBJECTS_ERROR:
+ rtems_set_errno_and_return_minus_one( EBADF );
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
_Thread_Enable_dispatch();