Skip to content

Commit

Permalink
posix: pthread: remove duplicate assignment in pthread_exit
Browse files Browse the repository at this point in the history
The `self->retval` field was assigned twice.

Signed-off-by: Chris Friedt <[email protected]>
  • Loading branch information
cfriedt authored and carlescufi committed Oct 31, 2022
1 parent e9dde82 commit f5cfeae
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 @@ -369,7 +369,6 @@ void pthread_exit(void *retval)

pthread_mutex_lock(&self->state_lock);
if (self->state == PTHREAD_JOINABLE) {
self->retval = retval;
self->state = PTHREAD_EXITED;
self->retval = retval;
pthread_cond_broadcast(&self->state_cond);
Expand Down

0 comments on commit f5cfeae

Please sign in to comment.