Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84c6cf0d authored by Steven Rostedt's avatar Steven Rostedt Committed by Steven Rostedt
Browse files

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent a5416411
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4040,7 +4040,6 @@ 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);

	mutex_unlock(&trace_types_lock);