diff options
| author | Vasyl Gomonovych <[email protected]> | 2017-12-18 11:05:43 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-12-19 10:05:18 +0100 |
| commit | 3703221944d00ac7af85c293f8939a273f587544 (patch) | |
| tree | a057e947504d008cddfb9ddc006c5d1da7da1302 /tools/perf/scripts/python | |
| parent | 26cf91f42eaf112074b92e5010c9b710b5b49c12 (diff) | |
coresight: Use PTR_ERR_OR_ZERO()
Fix ptr_ret.cocci warnings:
drivers/hwtracing/coresight/coresight-tpiu.c:163:1-3: WARNING: PTR_ERR_OR_ZERO can be used
drivers/hwtracing/coresight/coresight-funnel.c:217:1-3: WARNING: PTR_ERR_OR_ZERO can be used
drivers/hwtracing/coresight/coresight-dynamic-replicator.c:166:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Signed-off-by: Vasyl Gomonovych <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions