]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerZhang Rui <rui.zhang@intel.com>
Tue, 27 Sep 2016 06:02:16 +0000 (14:02 +0800)
commitd8f713c60070c67e652db6cf5dc7f22b147f1855
tree4ccb47768b58cc8fa5aea9672fc959045d331345
parent55bbf1c4c6a6d324bc10358b050f98b8b6810aee
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