[COMMON] thermal: gpu_cooling: Fix Prevent CID 11404
authorHyeonseong Gil <hs.gil@samsung.com>
Fri, 17 Feb 2017 08:06:46 +0000 (17:06 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:18:27 +0000 (17:18 +0900)
Change-Id: I9d00145cd8c52c11f7ec992d85ee58026abf3c7c
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/gpu_cooling.c

index 935c033f07a0a658589e20d1dc570e3e6ef54944..e261b57b84dd0288981925fa554aa612b29aa309 100644 (file)
@@ -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)