diff options
| author | Sudip Mukherjee <[email protected]> | 2020-10-26 18:00:26 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-10-29 08:37:29 +0100 |
| commit | b36773c3912e770e92ba57fa0957c1cf4db6e8a7 (patch) | |
| tree | 4d69727260659ab0ffd9db4a1c882db6ae562555 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
misc: hisi_hikey_usb: use PTR_ERR_OR_ZERO
Coccinelle suggested using PTR_ERR_OR_ZERO() and looking at the code,
we can use PTR_ERR_OR_ZERO() instead of checking IS_ERR() and then
doing 'return 0'.
Tested-by: Lukas Bulwahn <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions