projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e3c03
)
tracing/trivial: Consolidate error return condition
author
Harsh Prateek Bora
<harsh@linux.vnet.ibm.com>
Fri, 24 May 2013 07:22:17 +0000
(12:52 +0530)
committer
Steven Rostedt
<rostedt@goodmis.org>
Tue, 11 Jun 2013 22:38:49 +0000
(18:38 -0400)
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: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_events.c
b/kernel/trace/trace_events.c
index
27963e2
..
db086f1
100644
(file)
--- a/
kernel/trace/trace_events.c
+++ b/
kernel/trace/trace_events.c
@@
-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, ":");