diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-02-23 09:45:27 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-03-10 16:06:07 -0500 |
commit | 567f6989fd2ac1078d6908fe1bb45932bbeb1b00 (patch) | |
tree | e72d5197552f85dacc92b0f9de917abe3679904a /kernel/sched | |
parent | 404a3add43c9c42fe48b61341badfcb9cca165cc (diff) | |
download | linux-stable-567f6989fd2ac1078d6908fe1bb45932bbeb1b00.tar.gz linux-stable-567f6989fd2ac1078d6908fe1bb45932bbeb1b00.tar.bz2 linux-stable-567f6989fd2ac1078d6908fe1bb45932bbeb1b00.zip |
tracing: Embed replace_filter_string() helper function
The replace_filter_string() frees the current string and then copies a given
string. But in the two locations that it was used, the allocation happened
right after the filter was allocated (nothing to replace). There's no need
for this to be a helper function. Embedding the allocation in the two places
where it was called will make changing the code in the future easier.
Also make the variable consistent (always use "filter_string" as the name,
as it was used in one instance as "filter_str")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/sched')
0 files changed, 0 insertions, 0 deletions