[LTP] [COMMITTED] [PATCH 40/40] syscalls/flock04: Use curly brances in the else block
Cyril Hrubis
chrubis@suse.cz
Tue Oct 3 16:20:13 CEST 2017
The code generated by Coccinelle was correct but a bit confusingly
formatted.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/kernel/syscalls/flock/flock04.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/flock/flock04.c b/testcases/kernel/syscalls/flock/flock04.c
index 87f8fc0ad..8a282b41d 100644
--- a/testcases/kernel/syscalls/flock/flock04.c
+++ b/testcases/kernel/syscalls/flock/flock04.c
@@ -118,7 +118,9 @@ int main(int argc, char **argv)
"flock() PASSED in acquiring shared lock on "
"Share Locked file");
exit(0);
- } else SAFE_WAIT(cleanup, &status);
+ } else {
+ SAFE_WAIT(cleanup, &status);
+ }
pid = FORK_OR_VFORK();
if (pid == -1)
--
2.13.5
More information about the ltp
mailing list