mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
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 <[email protected]> Signed-off-by: Zhang Rui <[email protected]>