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

Commit 8092e808 authored by Harsh Prateek Bora's avatar Harsh Prateek Bora Committed by Steven Rostedt
Browse files

tracing/trivial: Consolidate error return condition

Consolidate the checks for !enabled and !param to return -EINVAL
in event_enable_func().

Link: http://lkml.kernel.org/r/1369380137-12452-1-git-send-email-harsh@linux.vnet.ibm.com



Signed-off-by: default avatarHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 90e3c03c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2011,10 +2011,7 @@ event_enable_func(struct ftrace_hash *hash,
	int ret;

	/* hash funcs only work with set_ftrace_filter */
	if (!enabled)
		return -EINVAL;

	if (!param)
	if (!enabled || !param)
		return -EINVAL;

	system = strsep(&param, ":");