devfreq_cooling: no need to check state with negative number
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 22 Aug 2016 08:08:06 +0000 (16:08 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Sep 2017 10:23:59 +0000 (19:23 +0900)
commitcfe99b247cc4b057826e99cf3d87a13ecdf4bbc6
treed5b842095806665c015dba256a288d528ef09923
parent525e8631a95385765ef80ec6556a8caa3acf81d3
devfreq_cooling: no need to check state with negative number

We could see that state is defined as unsigned type, so it
should never be less than zero. Let' remove this check.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/devfreq_cooling.c