diff options
author | Wei Yongjun <[email protected]> | 2016-07-30 06:32:37 +0000 |
---|---|---|
committer | Zhang Rui <[email protected]> | 2016-09-27 14:02:16 +0800 |
commit | 809eb35045097bc7da56fa8bba1f6b4cd1b721ba (patch) | |
tree | 986d64eb56bb0bdfe8ae0a34112c33968a1ef9ec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5ef62de751dcd21b3853368ab47eedcbc1cf3475 (diff) |
thermal: qcom: tsens: Fix return value check in init_common()
In case of error, the function of_iomap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
And the function devm_regmap_init_mmio() returns ERR_PTR()
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun <[email protected]>
Acked-by: Rajendra Nayak <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions