From d1cd1805347e595ca27c8a0428321d80c4131195 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 26 Jan 2021 23:09:08 +0100 Subject: [PATCH] fixed warning for RTEMS --- osal/rtems/CpuUsage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osal/rtems/CpuUsage.cpp b/osal/rtems/CpuUsage.cpp index 6655c69b..89c01336 100644 --- a/osal/rtems/CpuUsage.cpp +++ b/osal/rtems/CpuUsage.cpp @@ -164,7 +164,7 @@ ReturnValue_t CpuUsage::ThreadData::deSerialize(const uint8_t** buffer, if (result != HasReturnvaluesIF::RETURN_OK) { return result; } - if ((*size = *size - MAX_LENGTH_OF_THREAD_NAME) < 0) { + if (*size < MAX_LENGTH_OF_THREAD_NAME) { return STREAM_TOO_SHORT; } memcpy(name, *buffer, MAX_LENGTH_OF_THREAD_NAME);