Skip to content

Commit

Permalink
posix: pthread: remove duplicate assignment
Browse files Browse the repository at this point in the history
The `thread` pointer variable is already assigned within the loop
above.

Signed-off-by: Chris Friedt <[email protected]>
  • Loading branch information
cfriedt authored and fabiobaltieri committed Nov 7, 2022
1 parent 909bb77 commit ad5c3a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/posix/pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ int pthread_create(pthread_t *newthread, const pthread_attr_t *attr,

prio = posix_to_zephyr_priority(attr->priority, attr->schedpolicy);

thread = &posix_thread_pool[pthread_num];
/*
* Ignore return value, as we know that Zephyr implementation
* cannot fail.
Expand Down

0 comments on commit ad5c3a1

Please sign in to comment.