[COMMON] thermal: isp_cooling: Fix SVACE defect WGID 95373
authorHyeonseong Gil <hs.gil@samsung.com>
Tue, 7 Feb 2017 09:41:30 +0000 (18:41 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:25 +0000 (17:18 +0900)
Change-Id: I8acf12b4b8c85bd44b48c60e4df9f87db84c448e
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/isp_cooling.c

index 4330e30a1ff5f919854f9e2e62b5e6926150c837..e8b2227082a61dd2b6c3ef6afa7c5fdf4ecf1d5c 100644 (file)
@@ -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) {