perf report: Use skip_spaces()
No change in behaviour intended. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-lcywlfqbi37nhegmhl1ar6wg@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
80e9073f1f
commit
526bbbdd44
|
@ -941,8 +941,7 @@ parse_time_quantum(const struct option *opt, const char *arg,
|
||||||
pr_err("time quantum cannot be 0");
|
pr_err("time quantum cannot be 0");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
while (isspace(*end))
|
end = skip_spaces(end);
|
||||||
end++;
|
|
||||||
if (*end == 0)
|
if (*end == 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (!strcmp(end, "s")) {
|
if (!strcmp(end, "s")) {
|
||||||
|
|
Loading…
Reference in New Issue