From: Steven Rostedt Date: Fri, 21 Dec 2012 02:43:52 +0000 (-0500) Subject: tracing: Remove unneeded check of max_tr->buffer before tracing_reset X-Git-Tag: next-20130218~37^2~17^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84c6cf0db6a00601eb43cfc08244a398ffb0894c;p=karo-tx-linux.git 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 --- diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 72b171b90e55..d62248dfda76 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);