From 7c8701d56d37a1724e34a1ba78cfc6dabc7670dc Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Thu, 26 Sep 2013 11:57:06 +0200 Subject: [PATCH] cgclear: polish usage function This change is suggested by Dhaval Giani . Polish "usage" function of cgclear tool. Remove a level of indentation. Signed-off-by: Ivana Hutarova Varekova Acked-by: Dhaval Giani Acked-by: Jan Safranek --- src/tools/cgclear.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/tools/cgclear.c b/src/tools/cgclear.c index 1e00560f..915038a4 100644 --- a/src/tools/cgclear.c +++ b/src/tools/cgclear.c @@ -32,18 +32,17 @@ static void usage(int status, const char *program_name) fprintf(stderr, "Wrong input parameters," " try %s -h' for more information.\n", program_name); - } else { - printf("Usage: %s [-h] [-l FILE] [-L DIR] [-e]\n", - program_name); - printf("Unload the cgroup filesystem\n"); - printf(" -h, --help Display this help\n"); - printf(" -e, --empty Remove only empty"\ - " cgroups\n"); - printf(" -l, --load=FILE Parse and load"\ - "the cgroups configuration file\n"); - printf(" -L, --load-directory=DIR Parse and load"\ - "the cgroups configuration files from a directory\n"); + return; } + printf("Usage: %s [-h] [-l FILE] [-L DIR] [-e]\n", + program_name); + printf("Unload the cgroup filesystem\n"); + printf(" -h, --help Display this help\n"); + printf(" -e, --empty Remove only empty cgroups\n"); + printf(" -l, --load=FILE Parse and load the cgroups "\ + "configuration file\n"); + printf(" -L, --load-directory=DIR Parse and load the cgroups "\ + "configuration files from a directory\n"); } static void report_error(int error, const char *program_name) -- 2.47.2