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];