Changeset c3c4525 in rtems


Ignore:
Timestamp:
08/05/22 06:18:36 (8 weeks ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5500232
Parents:
c36d608
git-author:
Sebastian Huber <sebastian.huber@…> (08/05/22 06:18:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/05/22 06:20:58)
Message:

posix: Avoid dead code in clock_nanosleep()

This issue was reported by Coverity Scan for RTEMS:

CID 1507760: Control flow issues (DEADCODE)

Closes #4690.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/clocknanosleep.c

    rc36d608 rc3c4525  
    128128      struct timespec planned_end;
    129129
    130       if ( clock_id == CLOCK_REALTIME ) {
    131         _Timecounter_Nanotime( &actual_end );
    132       } else {
    133         _Timecounter_Nanouptime( &actual_end );
    134       }
     130      _Assert( clock_id == CLOCK_MONOTONIC );
     131      _Timecounter_Nanouptime( &actual_end );
    135132
    136133      _Watchdog_Ticks_to_timespec(
Note: See TracChangeset for help on using the changeset viewer.