From 441d92e8dcbd34d7966c1a6b14e4fcdd5f95a3ab Mon Sep 17 00:00:00 2001 From: Hyeonseong Gil Date: Tue, 7 Feb 2017 18:41:30 +0900 Subject: [PATCH] [COMMON] thermal: isp_cooling: Fix SVACE defect WGID 95373 Change-Id: I8acf12b4b8c85bd44b48c60e4df9f87db84c448e Signed-off-by: Hyeonseong Gil --- drivers/thermal/isp_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1