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/syscalls/link/link02.c b/testcases/kernel/syscalls/link/link02.c
index ece450c..3c48e1a 100644
--- a/testcases/kernel/syscalls/link/link02.c
+++ b/testcases/kernel/syscalls/link/link02.c
@@ -143,7 +143,7 @@
***************************************************************/
if ((msg = parse_opts(ac, av, NULL, NULL)) != NULL) {
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
- tst_exit();
+
}
/***************************************************************
@@ -159,7 +159,6 @@
***************************************************************/
for (lc = 0; TEST_LOOPING(lc); lc++) {
- /* reset Tst_count in case we are looping. */
Tst_count = 0;
/*
@@ -202,15 +201,14 @@
}
}
- } /* End for TEST_LOOPING */
+ }
/***************************************************************
* cleanup and exit
***************************************************************/
cleanup();
- return 0;
-} /* End main */
+}
/***************************************************************
* setup() - performs all ONE TIME setup for this test.
@@ -219,13 +217,10 @@
{
int fd;
- /* capture signals */
tst_sig(NOFORK, DEF_HANDLER, cleanup);
- /* Pause if that option was specified */
TEST_PAUSE;
- /* make a temp directory and cd to it */
tst_tmpdir();
strcpy(Fname, "tfile");
@@ -238,7 +233,7 @@
Fname, errno, strerror(errno));
}
strcpy(Lname, "lfile");
-} /* End setup() */
+}
/***************************************************************
* cleanup() - performs all ONE TIME cleanup for this test at
@@ -252,9 +247,6 @@
*/
TEST_CLEANUP;
- /* Remove tmp dir and all files in it */
tst_rmdir();
- /* exit with return code appropriate for results */
- tst_exit();
-} /* End cleanup() */
+}
\ No newline at end of file