From f7ef4e1f884713caa43513e6c01fa1145af23ee7 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Fri, 27 Sep 2013 07:18:03 +0200 Subject: [PATCH] lscgroup: polish usage function This change is suggested by Dhaval Giani . Polish "usage" function of lscgroup tool. Remove a level of indentation. Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- src/tools/lscgroup.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tools/lscgroup.c b/src/tools/lscgroup.c index 3b74aadb..f3ff5fa7 100644 --- a/src/tools/lscgroup.c +++ b/src/tools/lscgroup.c @@ -44,15 +44,15 @@ static void usage(int status, const char *program_name) fprintf(stderr, "Wrong input parameters," " try %s -h' for more information.\n", program_name); - } else { - fprintf(stdout, "Usage: %s [-h] [[-g] :] "\ - "[...]\n", program_name); - fprintf(stdout, " -g : Control group "\ - "to be displayed (-g is optional)\n"); - fprintf(stdout, " -h, --help Display "\ - "this help\n"); - fprintf(stdout, "List all cgroups\n"); + return; } + fprintf(stdout, "Usage: %s [-h] [[-g] :] "\ + "[...]\n", program_name); + fprintf(stdout, " -g : Control group "\ + "to be displayed (-g is optional)\n"); + fprintf(stdout, " -h, --help Display "\ + "this help\n"); + fprintf(stdout, "List all cgroups\n"); } /* -- 2.47.2