diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-26 11:42:03 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-26 11:42:03 -0300 |
commit | 328584804edc950fb4608c9a38e396ac71ef22b6 (patch) | |
tree | ea398fb09a36ea3af7f213ccbb2179b1889985d5 /tools/perf/util/string.c | |
parent | 526bbbdd442ce143b52cd6a8b4ee424f9930be0d (diff) | |
download | linux-328584804edc950fb4608c9a38e396ac71ef22b6.tar.bz2 |
perf tools: Ditch rtrim(), use skip_spaces() to get closer to the kernel
No change in behaviour, just using the same kernel idiom for such
operation.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: André Goddard Rosa <andre.goddard@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-a85lkptkt0ru40irpga8yf54@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/string.c')
-rw-r--r-- | tools/perf/util/string.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/perf/util/string.c b/tools/perf/util/string.c index d28e723e2790..99a555ea4a9f 100644 --- a/tools/perf/util/string.c +++ b/tools/perf/util/string.c @@ -319,20 +319,6 @@ char *strxfrchar(char *s, char from, char to) } /** - * ltrim - Removes leading whitespace from @s. - * @s: The string to be stripped. - * - * Return pointer to the first non-whitespace character in @s. - */ -char *ltrim(char *s) -{ - while (isspace(*s)) - s++; - - return s; -} - -/** * rtrim - Removes trailing whitespace from @s. * @s: The string to be stripped. * |