projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf target: str_error_r() always returns the buffer it receives
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
target.c
diff --git
a/tools/perf/util/target.c
b/tools/perf/util/target.c
index
8cdcf46
..
21c4d9b
100644
(file)
--- a/
tools/perf/util/target.c
+++ b/
tools/perf/util/target.c
@@
-122,11
+122,7
@@
int target__strerror(struct target *target, int errnum,
BUG_ON(buflen == 0);
if (errnum >= 0) {
- const char *err = str_error_r(errnum, buf, buflen);
-
- if (err != buf)
- scnprintf(buf, buflen, "%s", err);
-
+ str_error_r(errnum, buf, buflen);
return 0;
}