aubinator: report error on unknown device id

Since we're going to stop aubinator without a valid device id, better
report an error. This also silences a Coverity warning.

CID: 1405004
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Lionel Landwerlin 2017-05-24 02:04:34 +01:00
parent 8f1f1d294d
commit 359fa0e9a0

View file

@ -635,7 +635,7 @@ read_data_file(FILE *file)
if (matched == 1) {
if (!gen_get_device_info(reg, &devinfo)) {
printf("Unable to identify devid=%x\n", reg);
return;
exit(EXIT_FAILURE);
}
disasm = gen_disasm_create(reg);