From: Ivana Hutarova Varekova Date: Thu, 26 Sep 2013 09:57:06 +0000 (+0200) Subject: cgclear: polish usage function X-Git-Tag: v0.41~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c8701d56d37a1724e34a1ba78cfc6dabc7670dc;p=thirdparty%2Flibcgroup.git 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 --- 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)