diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2016-03-23 18:25:02 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-03-23 18:27:33 +0000 |
| commit | cf47a8aede9febee21cbd21d40a9c47244773a6c (patch) | |
| tree | 954ece73f022c29ef84e08d39cf10a275c8b3a39 /tools/perf/util/wrapper.c | |
| parent | perf tools: Do not include stringify.h from the kernel sources (diff) | |
| download | kernel-cf47a8aede9febee21cbd21d40a9c47244773a6c.tar.gz kernel-cf47a8aede9febee21cbd21d40a9c47244773a6c.zip | |
perf tools: Remove unused perf_pathdup, xstrdup functions
Cc: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/wrapper.c')
| -rw-r--r-- | tools/perf/util/wrapper.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/perf/util/wrapper.c b/tools/perf/util/wrapper.c index 19f15b650703..5f1a07c4b87b 100644 --- a/tools/perf/util/wrapper.c +++ b/tools/perf/util/wrapper.c @@ -12,18 +12,6 @@ static inline void release_pack_memory(size_t size __maybe_unused, { } -char *xstrdup(const char *str) -{ - char *ret = strdup(str); - if (!ret) { - release_pack_memory(strlen(str) + 1, -1); - ret = strdup(str); - if (!ret) - die("Out of memory, strdup failed"); - } - return ret; -} - void *xrealloc(void *ptr, size_t size) { void *ret = realloc(ptr, size); |
