thermal/drivers/ti-soc-thermal: Use helper function IS_ERR_OR_NULL()
authorLi Zetao <lizetao1@huawei.com>
Thu, 17 Aug 2023 01:49:00 +0000 (09:49 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 17 Aug 2023 07:24:54 +0000 (09:24 +0200)
commite98153a8c60a91b54fe9193bb9d51080f948e7c1
treef78e1affebc209515d2f9fc2e042f0c60c32e0b6
parent01c2180b7099aac7902472a2204562397592782f
thermal/drivers/ti-soc-thermal: Use helper function IS_ERR_OR_NULL()

Use IS_ERR_OR_NULL() to detect an error pointer or a null pointer
open-coding to simplify the code.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230817014900.3094512-1-lizetao1@huawei.com
drivers/thermal/ti-soc-thermal/ti-bandgap.c