perf help: No need to use strbuf_remove()
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: d1130686f463e6feff19196475c3c15b1923c525 Gitweb: http://git.kernel.org/tip/d1130686f463e6feff19196475c3c15b1923c525 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 23 Feb 2016 16:18:37 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 23 Feb 2016 16:18:37 -0300
perf help: No need to use strbuf_remove()
It is the only user of this function, just use the strlen() to skip the prefix.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-help.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tools/perf/builtin-help.c +1 -2
@@ -86,8 +86,7 @@ static int check_emacsclient_version(void)return -1 ; } -strbuf_remove (&buffer,0 ,strlen ("emacsclient" )); - version =atoi (buffer.buf); + version =atoi (buffer.buf +strlen ("emacsclient" ));if (version <22 ) { fprintf(stderr,