Skip to content

Commit 9fbda92

Browse files
committed
Correct some typos in queue.c
1 parent 9844959 commit 9fbda92

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

queue.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
345345

346346
/* This assertion cannot be branch covered in unit tests */
347347
configASSERT( xSize == sizeof( Queue_t ) ); /* LCOV_EXCL_BR_LINE */
348-
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
348+
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
349349
}
350350
#endif /* configASSERT_DEFINED */
351351

@@ -400,7 +400,7 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
400400
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
401401

402402
/* Check for addition overflow. */
403-
configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes );
403+
configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes );
404404

405405
/* Allocate the queue and storage area. Justification for MISRA
406406
* deviation as follows: pvPortMalloc() always ensures returned memory
@@ -948,15 +948,15 @@ BaseType_t xQueueGenericSend( QueueHandle_t xQueue,
948948
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
949949

950950
/* Unlocking the queue means queue events can effect the
951-
* event list. It is possible that interrupts occurring now
951+
* event list. It is possible that interrupts occurring now
952952
* remove this task from the event list again - but as the
953953
* scheduler is suspended the task will go onto the pending
954-
* ready last instead of the actual ready list. */
954+
* ready list instead of the actual ready list. */
955955
prvUnlockQueue( pxQueue );
956956

957957
/* Resuming the scheduler will move tasks from the pending
958958
* ready list into the ready list - so it is feasible that this
959-
* task is already in a ready list before it yields - in which
959+
* task is already in the ready list before it yields - in which
960960
* case the yield will not cause a context switch unless there
961961
* is also a higher priority task in the pending ready list. */
962962
if( xTaskResumeAll() == pdFALSE )
@@ -1778,7 +1778,7 @@ BaseType_t xQueuePeek( QueueHandle_t xQueue,
17781778
taskEXIT_CRITICAL();
17791779

17801780
/* Interrupts and other tasks can send to and receive from the queue
1781-
* now the critical section has been exited. */
1781+
* now that the critical section has been exited. */
17821782

17831783
vTaskSuspendAll();
17841784
prvLockQueue( pxQueue );
@@ -2748,6 +2748,7 @@ BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue )
27482748
mtCOVERAGE_TEST_MARKER();
27492749
}
27502750
}
2751+
27512752
/* Assert that the queue was added successfully */
27522753
configASSERT( ( ux != configQUEUE_REGISTRY_SIZE ) );
27532754
}

0 commit comments

Comments
 (0)