thermal: imx: save one condition block for normal case of nvmem initialization
authorAnson Huang <anson.huang@nxp.com>
Wed, 21 Nov 2018 05:49:40 +0000 (05:49 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:47:12 +0000 (04:47 -0800)
commit925b38361852ef314e9ecc649e830ad5319e3a65
treeda41bbc5d81b74e6b71f5fde4954ad1930b88cdc
parentc589c56671c914fbd6b56a6f92dce80edbbfdada
thermal: imx: save one condition block for normal case of nvmem initialization

Put return value checks of calling imx_init_from_nvmem_cells()
into one block to save one condition block for normal case.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/imx_thermal.c