diff options
| author | YueHaibing <[email protected]> | 2018-07-20 07:32:13 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-07-24 07:46:42 +0000 |
| commit | 2397134ce2d73dcf1d4846579f594c9f3880b2ec (patch) | |
| tree | 6081624e177054417a8fa6650208d3af23854d73 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | Linux 4.18-rc6 (diff) | |
| download | kernel-2397134ce2d73dcf1d4846579f594c9f3880b2ec.tar.gz kernel-2397134ce2d73dcf1d4846579f594c9f3880b2ec.zip | |
x86/platform/pcspeaker: Use PTR_ERR_OR_ZERO() to fix ptr_ret.cocci warning
The ptr_ret.cocci script generates the following warning:
arch/x86/kernel/pcspeaker.c:12:8-14: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO() rather than an open-coded version to fix this.
Signed-off-by: YueHaibing <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
