From 6f7b6d84bd35d6b836c86f04ed514feb39204986 Mon Sep 17 00:00:00 2001 From: Hyeonseong Gil Date: Fri, 17 Feb 2017 17:06:46 +0900 Subject: [PATCH] [COMMON] thermal: gpu_cooling: Fix Prevent CID 11404 Change-Id: I9d00145cd8c52c11f7ec992d85ee58026abf3c7c Signed-off-by: Hyeonseong Gil --- drivers/thermal/gpu_cooling.c | 3 --- 1 file changed, 3 deletions(-) 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) -- 2.20.1