thermal: imx8mm: Print the correct error code
authorFabio Estevam <festevam@gmail.com>
Wed, 2 Dec 2020 23:24:47 +0000 (20:24 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 4 Dec 2020 19:46:03 +0000 (20:46 +0100)
commitce662ccde5c6ae4f4d89fe71570bf59441004eb9
tree4a33442446672634ff67169622ef170de04a2150
parent1b57b9597c779f0a20c5837abec31f600240496b
thermal: imx8mm: Print the correct error code

Currently the error message does not print the correct error code.

Fix it by initializing 'ret' to the proper error code.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201202232448.2692-1-festevam@gmail.com
drivers/thermal/imx8mm_thermal.c