intel/tools/aubinator_error_decode: allow 0 arguments

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7833>
This commit is contained in:
Marcin Ślusarz 2020-11-30 13:21:35 +01:00 committed by Marge Bot
parent 7a7010d4f5
commit c2974a1d45
1 changed files with 2 additions and 3 deletions

View File

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