diff options
author | Dan Williams <[email protected]> | 2016-05-27 13:28:31 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2016-06-17 16:23:23 -0700 |
commit | 42588958147c7cc5a68726f14579011ad96663bb (patch) | |
tree | ee67e2dfa93650c6f16ba83145d056f45767d8b3 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 0aefa05420c0e81eec2496b28a1b5d6e7783cb23 (diff) |
libnvdimm: IS_ERR() usage cleanup
Prompted by commit 287980e49ffc "remove lots of IS_ERR_VALUE abuses", I
ran make coccicheck against drivers/nvdimm/ and found that:
if (IS_ERR(x))
return PTR_ERR(x);
return 0;
...can be replaced with PTR_ERR_OR_ZERO().
Reported-by: Linus Torvalds <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions