aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r--tools/perf/util/annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index dc15352924f9..b49ecdd51188 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -1668,7 +1668,7 @@ static int dso__disassemble_filename(struct dso *dso, char *filename, size_t fil
1668 1668
1669 build_id_path = strdup(filename); 1669 build_id_path = strdup(filename);
1670 if (!build_id_path) 1670 if (!build_id_path)
1671 return -1; 1671 return ENOMEM;
1672 1672
1673 /* 1673 /*
1674 * old style build-id cache has name of XX/XXXXXXX.. while 1674 * old style build-id cache has name of XX/XXXXXXX.. while
@@ -2977,7 +2977,7 @@ int symbol__annotate2(struct symbol *sym, struct map *map, struct evsel *evsel,
2977 2977
2978 notes->offsets = zalloc(size * sizeof(struct annotation_line *)); 2978 notes->offsets = zalloc(size * sizeof(struct annotation_line *));
2979 if (notes->offsets == NULL) 2979 if (notes->offsets == NULL)
2980 return -1; 2980 return ENOMEM;
2981 2981
2982 if (perf_evsel__is_group_event(evsel)) 2982 if (perf_evsel__is_group_event(evsel))
2983 nr_pcnt = evsel->core.nr_members; 2983 nr_pcnt = evsel->core.nr_members;