perf report: Use skip_spaces()
[linux-2.6-microblaze.git] / tools / perf / builtin-report.c
index 91a3762..aef59f3 100644 (file)
@@ -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")) {