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 tools: Experiment with cppcheck
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
strbuf.h
diff --git
a/tools/perf/util/strbuf.h
b/tools/perf/util/strbuf.h
index
b268a66
..
318424e
100644
(file)
--- a/
tools/perf/util/strbuf.h
+++ b/
tools/perf/util/strbuf.h
@@
-66,9
+66,8
@@
static inline ssize_t strbuf_avail(const struct strbuf *sb) {
int strbuf_grow(struct strbuf *buf, size_t);
static inline int strbuf_setlen(struct strbuf *sb, size_t len) {
- int ret;
if (!sb->alloc) {
- ret = strbuf_grow(sb, 0);
+
int
ret = strbuf_grow(sb, 0);
if (ret)
return ret;
}