Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kar-rahul-aws committed Jan 16, 2025
1 parent b8f6ca1 commit 053349f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions light-weight-mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
TickType_t startTime = xTaskGetTickCount();

/* Check the pxMutex pointer is not NULL. */
configASSERT( pxMutex || ( xTicksToWait == 0U ) );
configASSERT( ( pxMutex != NULL ) || ( xTicksToWait != 0U ) );

for( ; ; )
{
Expand Down Expand Up @@ -76,7 +76,7 @@
/* Check the pxMutex pointer is not NULL and the mutex has already been taken earlier. */
BaseType_t xReturn = pdFALSE;

configASSERT( pxMutex );
configASSERT( pxMutex != NULL );

taskENTER_CRITICAL();
{
Expand Down

0 comments on commit 053349f

Please sign in to comment.