summaryrefslogtreecommitdiff
path: root/include/trace/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-02-26 06:33:59 +0400
committerSteven Rostedt <rostedt@goodmis.org>2014-03-07 19:05:50 +0400
commit92550405c493a3c2fa14bf37d1d60cd6c7d0f585 (patch)
tree3a2473ac02bfebfcb5100efca72f3837eb450263 /include/trace/ftrace.h
parent7dec935a3aa04412cba2cebe1524ae0d34a30c24 (diff)
downloadlinux-92550405c493a3c2fa14bf37d1d60cd6c7d0f585.tar.xz
ftrace/x86: Have ftrace_write() return -EPERM and clean up callers
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>
Diffstat (limited to 'include/trace/ftrace.h')
0 files changed, 0 insertions, 0 deletions