From: Arnaldo Carvalho de Melo Date: Wed, 26 Jun 2019 14:24:37 +0000 (-0300) Subject: perf report: Use skip_spaces() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=526bbbdd442ce143b52cd6a8b4ee424f9930be0d;p=linux.git perf report: Use skip_spaces() No change in behaviour intended. Cc: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-lcywlfqbi37nhegmhl1ar6wg@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 91a3762b42111..aef59f318a670 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -941,8 +941,7 @@ parse_time_quantum(const struct option *opt, const char *arg, pr_err("time quantum cannot be 0"); return -1; } - while (isspace(*end)) - end++; + end = skip_spaces(end); if (*end == 0) return 0; if (!strcmp(end, "s")) {