From c2974a1d45c7e922bb36571cf6873f368dc639a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Mon, 30 Nov 2020 13:21:35 +0100 Subject: [PATCH] intel/tools/aubinator_error_decode: allow 0 arguments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Ĺšlusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/tools/aubinator_error_decode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index e1d86be8a59..19cca97b1f9 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -791,7 +791,7 @@ main(int argc, char *argv[]) } } - if (help || argc == 1) { + if (help) { print_help(argv[0], stderr); exit(EXIT_SUCCESS); } @@ -815,8 +815,7 @@ main(int argc, char *argv[]) "\tsudo mount -t debugfs debugfs /sys/kernel/debug\n"); } } else { - read_data_file(stdin); - exit(EXIT_SUCCESS); + file = stdin; } } else { path = argv[optind];