testing/ostest/barrier: Remove duplicate initialization of the barrier's

attributes.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-07-28 17:05:11 +02:00 committed by Xiang Xiao
parent 025ce0e008
commit b1fb24d5b9

View File

@ -107,6 +107,8 @@ void barrier_test(void)
printf("barrier_test: Initializing barrier\n");
/* Create the barrier */
status = pthread_barrierattr_init(&barrierattr);
if (status != OK)
{
@ -122,10 +124,6 @@ void barrier_test(void)
status);
}
/* Create the barrier */
pthread_barrierattr_init(&barrierattr);
/* Start CONFIG_TESTING_OSTEST_NBARRIER_THREADS thread instances */
status = pthread_attr_init(&attr);