diff options
Diffstat (limited to 'schedutils/chrt.c')
-rw-r--r-- | schedutils/chrt.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c index 73d1ffa9b..b52aec137 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -439,8 +439,6 @@ int main(int argc, char **argv) while((c = getopt_long(argc, argv, "+abdD:fiphmoP:T:rRvV", longopts, NULL)) != -1) { - int ret = EXIT_FAILURE; - switch (c) { case 'a': ctl->all_tasks = 1; @@ -496,10 +494,9 @@ int main(int argc, char **argv) printf(UTIL_LINUX_VERSION); return EXIT_SUCCESS; case 'h': - ret = EXIT_SUCCESS; - /* fallthrough */ + show_usage(EXIT_SUCCESS); default: - show_usage(ret); + errtryhelp(EXIT_FAILURE); } } |