summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-12-20 21:43:52 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-01-21 13:22:33 -0500
commit84c6cf0db6a00601eb43cfc08244a398ffb0894c (patch)
tree2e391b758e930ab062c80462ffdc4de5930be6c4 /kernel
parenta54164114b96b4693b42cdb553260eec41ea4393 (diff)
downloadop-kernel-dev-84c6cf0db6a00601eb43cfc08244a398ffb0894c.zip
op-kernel-dev-84c6cf0db6a00601eb43cfc08244a398ffb0894c.tar.gz
tracing: Remove unneeded check of max_tr->buffer before tracing_reset
There's now a check in tracing_reset_online_cpus() if the buffer is allocated or NULL. No need to do a check before calling it with max_tr. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 72b171b..d62248d 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -4040,8 +4040,7 @@ static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf,
* Reset the buffer so that it doesn't have incomparable timestamps.
*/
tracing_reset_online_cpus(&global_trace);
- if (max_tr.buffer)
- tracing_reset_online_cpus(&max_tr);
+ tracing_reset_online_cpus(&max_tr);
mutex_unlock(&trace_types_lock);
OpenPOWER on IntegriCloud