Changeset 450c170 in rtems


Ignore:
Timestamp:
01/28/21 10:35:18 (16 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
198e926
Parents:
64189a70
git-author:
Sebastian Huber <sebastian.huber@…> (01/28/21 10:35:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/01/21 05:22:20)
Message:

score: Add comments and asserts for clarification

This fix relates to a Coverity issue (NULL_RETURNS).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/priorityimpl.h

    r64189a70 r450c170  
    614614    Priority_Node *min;
    615615
     616    /* The aggregation is non-empty, so the minimum node exists. */
    616617    min = _Priority_Get_minimum_node( aggregation );
     618    _Assert( min != NULL );
    617619
    618620    if ( node->priority < min->priority ) {
     
    685687  _Priority_Plain_changed( aggregation, node );
    686688
     689  /*
     690   * There is at least the changed node in the aggregation, so the minimum node
     691   * exists.
     692   */
    687693  min = _Priority_Get_minimum_node( aggregation );
     694  _Assert( min != NULL );
    688695
    689696  if ( min->priority != aggregation->Node.priority ) {
Note: See TracChangeset for help on using the changeset viewer.