Skip to content

Commit

Permalink
Merge pull request #1446 from thesamprice:deadStore
Browse files Browse the repository at this point in the history
Fix #1452, Remove softsleep, as a dead store.
  • Loading branch information
dzbaker committed Feb 23, 2024
2 parents 04149d8 + da4fa3d commit fff0725
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/os/posix/inc/os-impl-timebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ typedef struct
int assigned_signal;
sigset_t sigset;
sig_atomic_t reset_flag;
struct timespec softsleep;
} OS_impl_timebase_internal_record_t;

/****************************************************************************************
Expand Down
1 change: 0 additions & 1 deletion src/os/posix/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ int32 OS_TimeBaseCreate_Impl(const OS_object_token_t *token)
}

local->assigned_signal = 0;
clock_gettime(OS_PREFERRED_CLOCK, &local->softsleep);

/*
* Set up the necessary OS constructs
Expand Down
1 change: 0 additions & 1 deletion src/os/rtems/inc/os-impl-timebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ typedef struct
int assigned_signal;
sigset_t sigset;
sig_atomic_t reset_flag;
struct timespec softsleep;
} OS_impl_timebase_internal_record_t;

/****************************************************************************************
Expand Down

0 comments on commit fff0725

Please sign in to comment.