git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dec935
)
ftrace/x86: Have ftrace_write() return -EPERM and clean up callers
author
Steven Rostedt (Red Hat)
<rostedt@goodmis.org>
Wed, 26 Feb 2014 02:33:59 +0000
(21:33 -0500)
committer
Steven Rostedt
<rostedt@goodmis.org>
Fri, 7 Mar 2014 15:05:50 +0000
(10:05 -0500)
Having ftrace_write() return -EPERM on failure, as that's what the callers
return, then we can clean up the code a bit. That is, instead of:
if (ftrace_write(...))
return -EPERM;
return 0;
or
if (ftrace_write(...)) {
ret = -EPERM;
goto_out;
}
We can instead have:
return ftrace_write(...);
or
ret = ftrace_write(...);
if (ret)
goto out;
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/ftrace.c
patch
|
blob
|
history
diff --cc
arch/x86/kernel/ftrace.c
Simple merge