mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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/[email protected] Signed-off-by: Harsh Prateek Bora <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
This commit is contained in:
parent
90e3c03c3a
commit
8092e808a3
1 changed files with 1 additions and 4 deletions
|
|
@ -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(¶m, ":");
|
||||
|
|
|
|||
Loading…
Reference in a new issue