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:
committed by
Marge Bot
parent
7a7010d4f5
commit
c2974a1d45
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user