diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2013-03-04 16:52:48 +0000 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-03-11 23:09:29 +0800 |
commit | 043e4652bf3378883e7c0db38fa47fa8e2558f9c (patch) | |
tree | f1d56f2f084e3c0c64fe0f6b41d56bd57d074502 /tools/perf/scripts/python/sctop.py | |
parent | fb84d9907f0ff0e3f7d70d55039ddf0f78d2a472 (diff) |
thermal: exynos_thermal: return a proper error code while thermal_zone_device_register fail.
we are returning EINVAL while the thermal_zone_device_register function fail.
instead we can use the return value from the thermal_zone_device_register by
using PTR_ERR.
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions