diff --git a/src/os/rtems/src/os-impl-queues.c b/src/os/rtems/src/os-impl-queues.c index aed05a03b..84c694882 100644 --- a/src/os/rtems/src/os-impl-queues.c +++ b/src/os/rtems/src/os-impl-queues.c @@ -223,17 +223,11 @@ int32 OS_QueueGet_Impl(const OS_object_token_t *token, void *data, size_t size, } /* - ** Check the size of the message. If a valid message was - ** obtained, indicate success. + ** If a valid message was obtained fill in queue size, otherwise fill in zero on error */ if (status == RTEMS_SUCCESSFUL) { *size_copied = rtems_size; - if (rtems_size != size) - { - /* Success, but the size was wrong */ - return_code = OS_QUEUE_INVALID_SIZE; - } } else {