From 2a092d61453c76d4584d478b02fed67fa479b339 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 14 Dec 2017 14:14:56 -0300 Subject: [PATCH] dwarves: Fix cus__load_files() success return value If we processed at least one file we should return 0 to mean success. Fixes: 02a456f5f54c ("pahole: Search and use running kernel vmlinux when no file is passed") Signed-off-by: Arnaldo Carvalho de Melo --- dwarves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwarves.c b/dwarves.c index 9ee1f31..cef0681 100644 --- a/dwarves.c +++ b/dwarves.c @@ -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)