]> git.ipfire.org Git - people/arne_f/kernel.git/commit
thermal: armada: Use PTR_ERR_OR_ZERO in armada_thermal_probe_legacy()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 13 Nov 2018 14:13:45 +0000 (14:13 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:47:10 +0000 (04:47 -0800)
commitac31f6e25d4e9e9dfda9c0621242036b291b7754
tree0311ec6c1ce5c68de961af31f31999d17a3bdd9c
parent24f1c13fa5f1599c373c53783f74de8a639f7999
thermal: armada: Use PTR_ERR_OR_ZERO in armada_thermal_probe_legacy()

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/armada_thermal.c