Skip to content

Commit

Permalink
Directly initialize immediately assigned variable (#4337)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dante-Broggi committed Mar 20, 2023
1 parent f1d4d45 commit ca5b729
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libponyrt/sched/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,9 +1132,7 @@ static DECLARE_THREAD_FN(run_thread)

static void ponyint_sched_shutdown()
{
uint32_t start;

start = 0;
uint32_t start = 0;

for(uint32_t i = start; i < scheduler_count; i++)
ponyint_thread_join(scheduler[i].tid);
Expand Down

0 comments on commit ca5b729

Please sign in to comment.