testing/smp/smp_main.c: Remove duplicate initialization of the barrier's
attributes.
@@ -221,6 +221,8 @@ int main(int argc, FAR char *argv[])
show_cpu(" Main", 0);
printf(" Main[0]: Initializing barrier\n");
+ /* Create the barrier */
+
ret = pthread_barrierattr_init(&barrierattr);
if (ret != OK)
{
@@ -242,10 +244,6 @@ int main(int argc, FAR char *argv[])
goto errout_with_attr;
}
- /* Create the barrier */
-
- pthread_barrierattr_init(&barrierattr);
-
/* Start CONFIG_TESTING_SMP_NBARRIER_THREADS thread instances */
ret = pthread_attr_init(&attr);
