thermal: exynos: Use IS_ERR() because regulator cannot be NULL
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 8 Oct 2015 05:34:04 +0000 (14:34 +0900)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 4 Nov 2015 19:09:39 +0000 (11:09 -0800)
commitbfa26838572cd9b2b0623fcbc7b9352dcaa4262b
tree3cff7e097ccdd351faf24fef902f477901f11c08
parent9e4249b4034090730017deaf632b46b5faaa12b9
thermal: exynos: Use IS_ERR() because regulator cannot be NULL

The NULL check in probe's error path is not needed because in that time
the regulator cannot be NULL (regulator_get() returns valid pointer or
ERR_PTR).

Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/samsung/exynos_tmu.c