perf strfilter: Use skip_spaces()
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: c1fc14cbdcc9455507e5f54109199bfea3af185f Gitweb: https://git.kernel.org/tip/c1fc14cbdcc9455507e5f54109199bfea3af185f Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 26 Jun 2019 11:08:10 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 26 Jun 2019 11:31:43 -0300
perf strfilter: Use skip_spaces()
No change in behaviour.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Masami Hiramatsu <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/strfilter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/util/strfilter.c +2 -2
@@ -5,6 +5,7 @@#include <errno.h> #include <linux/ctype.h> +#include <linux/string.h> /* Operators */ static const char *OP_and ="&" ;/* Logical AND */
@@ -37,8 +38,7 @@ static const char *get_token(const char *s, const char **e) {const char *p; -while (isspace (*s))/* Skip spaces */ - s++; + s =skip_spaces (s);if (*s =='\0' ) { p = s;