diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-29 18:38:13 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-04-01 01:00:35 +0300 |
commit | c1bc5919f6741cc4b0c83e3058b3d65d76c943e3 (patch) | |
tree | 39c2658a31e40193ecb4893558631d467edd49fe /tools/perf/scripts/python/syscall-counts.py | |
parent | 2b87965a1e6b6051435315d3f04627a5dbad979c (diff) | |
download | linux-c1bc5919f6741cc4b0c83e3058b3d65d76c943e3.tar.xz |
ftrace: Clean up __seq_open_private() return check
The return status check of __seq_open_private() is rather strange:
iter = __seq_open_private();
if (iter) {
/* do stuff */
}
return iter ? 0 : -ENOMEM;
It makes much more sense to do the return of failure right away:
iter = __seq_open_private();
if (!iter)
return -ENOMEM;
/* do stuff */
return 0;
This clean up will make updates to this code a bit nicer.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions