From: Dmitry V. Levin Date: Thu, 21 Apr 2016 21:06:13 +0000 (+0000) Subject: tests/mlockall.c: cleanup X-Git-Tag: v4.12~337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84aeea7e29badf767d9f253c60b8e39f3bd6de80;p=strace tests/mlockall.c: cleanup --- diff --git a/tests/mlockall.c b/tests/mlockall.c index 2a27ce45..10c86676 100644 --- a/tests/mlockall.c +++ b/tests/mlockall.c @@ -38,12 +38,10 @@ main(void) { printf("mlockall(0) = %d EINVAL (%m)\n", mlockall(0)); - if (mlockall(MCL_CURRENT) == 0) { + if (mlockall(MCL_CURRENT) == 0) puts("mlockall(MCL_CURRENT) = 0"); - } else { - printf("mlockall(MCL_CURRENT) = -1 %s (%m)\n", - errno2name()); - } + else + printf("mlockall(MCL_CURRENT) = -1 %s (%m)\n", errno2name()); puts("+++ exited with 0 +++"); return 0;