diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-07-08 17:45:06 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-16 17:48:48 +0200 |
commit | 64279c7e05264f9774c6c9ee65a5b9ed186e442b (patch) | |
tree | 6cb11a74346063ffdcb76f06e3eb71ec5d5e1126 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 23ae2a16bb39d999892a86a65933fe3e9b6b525f (diff) |
x86/platform/iosf_mbi: Check return value of debugfs_create properly
The code checks the result of the first debugfs_create call several
times and fails to check the result of the subsequent calls due to
missing assigments.
Add the missing assignments and check only for !res because
debugfs_create() returns only NULL on error and not an encoded error
code.
[ tglx: Massaged changelog ]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: David E . Box <david.e.box@linux.intel.com>
Link: http://lkml.kernel.org/r/1436366709-17683-3-git-send-email-andriy.shevchenko@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions