Unverified Commit 7e89f2c7 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7031 Revert "tracing/trigger: Fix to return error if failed to alloc snapshot"

parents b2a45f79 dc8baa3c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1140,10 +1140,8 @@ register_snapshot_trigger(char *glob, struct event_trigger_ops *ops,
			  struct event_trigger_data *data,
			  struct trace_event_file *file)
{
	int ret = tracing_alloc_snapshot_instance(file->tr);

	if (ret < 0)
		return ret;
	if (tracing_alloc_snapshot_instance(file->tr) != 0)
		return 0;

	return register_trigger(glob, ops, data, file);
}