Style and conformance changes.
1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.
Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
diff --git a/testcases/kernel/sched/nptl/nptl01.c b/testcases/kernel/sched/nptl/nptl01.c
index 487c0d1..2ae519e 100644
--- a/testcases/kernel/sched/nptl/nptl01.c
+++ b/testcases/kernel/sched/nptl/nptl01.c
@@ -225,14 +225,14 @@
if (optarg)
numloops = atoi(optarg);
else
- fprintf(stderr, "%s: option -l requires an argument\n", argv[0]);
+ fprintf(stderr, "%s: option -l requires an argument\n", argv[0]);
break;
default:
usage(argv[0]);
exit(1);
}
}
-
+
signal(SIGALRM, trap_alarm);
alarm(MAXTIME);
@@ -243,7 +243,7 @@
call_cond_init(&child, buf, sizeof(buf));
call_mutex_lock(&ack, buf, sizeof(buf));
-
+
create_child_thread(buf, sizeof(buf));
tst_resm(TINFO,"Starting test, please wait.");
@@ -276,7 +276,7 @@
tst_resm(TCONF,"Skipping Execution - This system is not using NPTL");
tst_exit();
#endif
- /* NOT REACHED */
+
return 1;
}
@@ -288,8 +288,5 @@
cleanup()
{
- /* exit with return code appropriate for results */
tst_exit();
-} /* End cleanup() */
-
-
+}
\ No newline at end of file