testing/ostest/barrier: Remove duplicate initialization of the barrier's
attributes.
@@ -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);
