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:
parent
ee44b5b51f
commit
c1fc14cbdc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue