perf strfilter: Use skip_spaces()

No change in behaviour.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-p9rtamq7lvre9zhti70azfwe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-06-26 11:08:10 -03:00
parent ee44b5b51f
commit c1fc14cbdc
1 changed files with 2 additions and 2 deletions

View File

@ -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;