posix: pthread: remove duplicate assignment

The `thread` pointer variable is already assigned within the loop
above.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
This commit is contained in:
Chris Friedt 2022-11-06 10:43:57 -05:00 committed by Fabio Baltieri
parent 909bb77fa5
commit ad5c3a1ae3

View file

@ -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.