Explorar o código

cpufreq: s3c24xx: Remove useless checks

These aren't required at all, remove them.

Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Viresh Kumar %!s(int64=9) %!d(string=hai) anos
pai
achega
f0f879ba53
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      drivers/cpufreq/s3c24xx-cpufreq.c

+ 0 - 4
drivers/cpufreq/s3c24xx-cpufreq.c

@@ -571,11 +571,7 @@ static int s3c_cpufreq_build_freq(void)
 {
 	int size, ret;
 
-	if (!cpu_cur.info->calc_freqtable)
-		return -EINVAL;
-
 	kfree(ftab);
-	ftab = NULL;
 
 	size = cpu_cur.info->calc_freqtable(&cpu_cur, NULL, 0);
 	size++;