diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 7a80c7362a037b90e5da9f996bc34947c2c7db85..60e915f392a66071a67c2f54e14d600bed96d516 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -82,16 +82,12 @@ static int call__parse(struct ins_operands *ops) return ops->target.name == NULL ? -1 : 0; indirect_call: - tok = strchr(endptr, '('); - if (tok != NULL) { + tok = strchr(endptr, '*'); + if (tok == NULL) { ops->target.addr = 0; return 0; } - tok = strchr(endptr, '*'); - if (tok == NULL) - return -1; - ops->target.addr = strtoull(tok + 1, NULL, 16); return 0; }