[PATCH 6.2 0206/1001] thermal/drivers/imx_sc_thermal: Fix the loop condition