dwarves: Fix cus__load_files() success return value

If we processed at least one file we should return 0 to mean success.

Fixes: 02a456f5f5 ("pahole: Search and use running kernel vmlinux when no file is passed")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2017-12-14 14:14:56 -03:00
parent 02a456f5f5
commit 2a092d6145
1 changed files with 1 additions and 1 deletions

View File

@ -1850,7 +1850,7 @@ int cus__load_files(struct cus *cus, struct conf_load *conf,
++i;
}
return i ?: cus__load_running_kernel(cus, conf);
return i ? 0 : cus__load_running_kernel(cus, conf);
}
int cus__fprintf_load_files_err(struct cus *cus, const char *tool, char *argv[], int err, FILE *output)