cpufreq: s3c24xx: Remove useless checks
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 3 Jun 2016 05:28:46 +0000 (10:58 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Jun 2016 22:58:05 +0000 (00:58 +0200)
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>
drivers/cpufreq/s3c24xx-cpufreq.c

index ae8eaed77b70748e961aaac9f4fb4b8e7ff6447d..4567c3cab0956b31dc25fc5012d64c660880dd2d 100644 (file)
@@ -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++;