Messages in this thread Patch in this message | | | From | Ravi Bangoria <> | Subject | [RFC 1/4] perf tool: Simplify machine__create_modules() a bit | Date | Tue, 10 Jan 2023 11:28:56 +0530 |
| |
Tweak this function a bit. No need to return twice.
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com> --- tools/perf/util/machine.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 803c9d1803dd..ab2919bc0a0d 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -1613,10 +1613,8 @@ static int machine__create_modules(struct machine *machine) if (modules__parse(modules, machine, machine__create_module)) return -1; - if (!machine__set_modules_path(machine)) - return 0; - - pr_debug("Problems setting modules path maps, continuing anyway...\n"); + if (machine__set_modules_path(machine)) + pr_debug("Problems setting modules path maps, continuing anyway...\n"); return 0; } -- 2.39.0
| |