From: Hyeonseong Gil Date: Tue, 7 Feb 2017 09:41:30 +0000 (+0900) Subject: [COMMON] thermal: isp_cooling: Fix SVACE defect WGID 95373 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=441d92e8dcbd34d7966c1a6b14e4fcdd5f95a3ab;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: isp_cooling: Fix SVACE defect WGID 95373 Change-Id: I8acf12b4b8c85bd44b48c60e4df9f87db84c448e Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/thermal/isp_cooling.c b/drivers/thermal/isp_cooling.c index 4330e30a1ff5..e8b2227082a6 100644 --- a/drivers/thermal/isp_cooling.c +++ b/drivers/thermal/isp_cooling.c @@ -181,7 +181,7 @@ static int get_property(unsigned int isp, unsigned long input, if (property == GET_LEVEL && (unsigned int)input == fps) { /* get level by fps */ - *output = descend ? i : (max_level - i); + *output = (unsigned int)(descend ? i : (max_level - i)); return 0; } if (property == GET_FPS && level == i) {