[COMMON] thermal: of_thermal: Fix SVACE(WGID:82320) bug
authorSoomin Kim <sm8326.kim@samsung.com>
Mon, 2 Jan 2017 04:10:38 +0000 (13:10 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:08 +0000 (17:18 +0900)
commitb83ecb29ce049abef6dcb0c1ea9e0a95bab3d262
tree50c42b0e5509938460a7d48b9a17f6418554bfa8
parent868612e215fe687892c19192f098b4aa84d9497d
[COMMON] thermal: of_thermal: Fix SVACE(WGID:82320) bug

Uninitialized variable,'level', is used. Also, if there
is parsing error, the value of level can be strange.
So, fix both bug.

Change-Id: I21a4eaf9cfed87f6ed14c4b2c35548a0dea4cdd7
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
drivers/thermal/of-thermal.c