From: Hyeonseong Gil Date: Fri, 17 Feb 2017 08:06:46 +0000 (+0900) Subject: [COMMON] thermal: gpu_cooling: Fix Prevent CID 11404 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f7b6d84bd35d6b836c86f04ed514feb39204986;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: gpu_cooling: Fix Prevent CID 11404 Change-Id: I9d00145cd8c52c11f7ec992d85ee58026abf3c7c Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/thermal/gpu_cooling.c b/drivers/thermal/gpu_cooling.c index 935c033f07a0..e261b57b84dd 100644 --- a/drivers/thermal/gpu_cooling.c +++ b/drivers/thermal/gpu_cooling.c @@ -168,9 +168,6 @@ static int get_property(unsigned int gpu, unsigned long input, if (!output) return -EINVAL; - if (!table) - return -EINVAL; - cpufreq_for_each_valid_entry(pos, table) { /* ignore duplicate entry */ if (freq == pos->frequency)