diff options
| author | Li Jun <[email protected]> | 2018-06-27 07:45:26 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-06-28 19:49:48 +0900 |
| commit | d3a4c916a92f7e50acd58b54f300c4390c04639f (patch) | |
| tree | ba418fff7f1b05844a76be2bfce8ae89463b7983 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c2ee5e18652f7ed2bf6e0fbaa374f23cfd406e72 (diff) | |
staging: typec: tcpci: use IS_ERR() instead of PTR_ERR_OR_ZERO()
As tcpm_register_port() and tcpci_register_port() never return
NULL and NULL is not a success in this case, use IS_ERR() to check
the return value of both.
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Li Jun <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions