aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSudip Mukherjee <[email protected]>2020-04-24 17:19:44 +0100
committerDaniel Lezcano <[email protected]>2020-04-29 16:38:58 +0200
commit7440f518dad9d861d76c64956641eeddd3586f75 (patch)
tree000e1d14685866ff11385de8627d35a8b3ebc6dc /tools/perf/scripts/python/export-to-sqlite.py
parent770ae40cd6d23eb331572b8913f51dc715c9d460 (diff)
thermal/drivers/ti-soc-thermal: Avoid dereferencing ERR_PTR
On error the function ti_bandgap_get_sensor_data() returns the error code in ERR_PTR() but we only checked if the return value is NULL or not. And, so we can dereference an error code inside ERR_PTR. While at it, convert a check to IS_ERR_OR_NULL. Signed-off-by: Sudip Mukherjee <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions