From: Arshad Hussain Date: Sun, 29 Sep 2019 23:10:50 +0000 (+0530) Subject: LU-6142 tests: Fix style issues for tchmod.c X-Git-Tag: 2.13.51~164 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F36441%2F2;p=fs%2Flustre-release.git LU-6142 tests: Fix style issues for tchmod.c This patch fixes issues reported by checkpatch for file lustre/tests/tchmod.c Test-Parameters: trivial testlist=recovery-small Signed-off-by: Arshad Hussain Change-Id: I59a94c26e553a616d82ecc9a4d493511e808a82e Reviewed-on: https://review.whamcloud.com/36441 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Shaun Tancheff Reviewed-by: Petros Koutoupis --- diff --git a/lustre/tests/tchmod.c b/lustre/tests/tchmod.c index 2d2c320..e266584 100644 --- a/lustre/tests/tchmod.c +++ b/lustre/tests/tchmod.c @@ -36,13 +36,13 @@ int main(int argc, char **argv) { - mode_t mode; + mode_t mode; - if (argc != 3) { - printf("usage: %s mode name\n", argv[0]); - return 1; - } + if (argc != 3) { + printf("usage: %s mode name\n", argv[0]); + return 1; + } - mode = strtoul(argv[1], NULL, 8); - return chmod(argv[2], mode) ? errno : 0; + mode = strtoul(argv[1], NULL, 8); + return chmod(argv[2], mode) ? errno : 0; }