Skip to content

Commit

Permalink
Removes redundant API calls in MPU wrappers (FreeRTOS#838)
Browse files Browse the repository at this point in the history
* Remove redundant API calls in Queue wrappers
  • Loading branch information
kar-rahul-aws authored and n9wxu committed Oct 26, 2023
1 parent b46a2f5 commit 57f75de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions portable/Common/mpu_wrappers_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@
if( pvItemToQueue != NULL )
{
xIsItemToQueueReadable = xPortIsAuthorizedToAccessBuffer( pvItemToQueue,
uxQueueGetQueueItemSize( xInternalQueueHandle ),
uxQueueItemSize,
tskMPU_READ_PERMISSION );
}

Expand Down Expand Up @@ -2246,7 +2246,7 @@
)
{
xIsReceiveBufferWritable = xPortIsAuthorizedToAccessBuffer( pvBuffer,
uxQueueGetQueueItemSize( xInternalQueueHandle ),
uxQueueItemSize,
tskMPU_WRITE_PERMISSION );

if( xIsReceiveBufferWritable == pdTRUE )
Expand Down Expand Up @@ -2298,7 +2298,7 @@
)
{
xIsReceiveBufferWritable = xPortIsAuthorizedToAccessBuffer( pvBuffer,
uxQueueGetQueueItemSize( xInternalQueueHandle ),
uxQueueItemSize,
tskMPU_WRITE_PERMISSION );

if( xIsReceiveBufferWritable == pdTRUE )
Expand Down

0 comments on commit 57f75de

Please sign in to comment.