Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchinglee-iot <61685396+chinglee-iot@users.noreply.github.com>2023-11-28 14:34:13 +0300
committerGitHub <noreply@github.com>2023-11-28 14:34:13 +0300
commitf2637bae55405b11c8ea80e919bfab16ef4dd26b (patch)
tree7499c1a1fa0592d0ee7f634da8627b9ebf8d2118 /queue.c
parent1813a4551e4edbba215b6f1cb3c484c41d369f96 (diff)
Fix MISRA 2012 Rule 10.8 violation (#853)
Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-245.ap-northeast-1.compute.internal> Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/queue.c b/queue.c
index ffb180ec8..6429307ec 100644
--- a/queue.c
+++ b/queue.c
@@ -509,7 +509,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
/* Allocate enough space to hold the maximum number of items that
* can be in the queue at any time. It is valid for uxItemSize to be
* zero in the case the queue is used as a semaphore. */
- xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
+ xQueueSizeInBytes = ( size_t ) ( ( size_t ) uxQueueLength * ( size_t ) uxItemSize );
/* Allocate the queue and storage area. Justification for MISRA
* deviation as follows: pvPortMalloc() always ensures returned memory