diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-06-03 10:58:46 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-06-09 00:58:05 +0200 |
commit | f0f879ba533ed29ca277c95d529fce703113271e (patch) | |
tree | 967f5f247a1e3b470cc4df52aa56a9052c7df1bd /drivers/cpufreq/s3c24xx-cpufreq.c | |
parent | 64bf55a72f550ad33f4053493717f51efe632e9f (diff) | |
download | talos-obmc-linux-f0f879ba533ed29ca277c95d529fce703113271e.tar.gz talos-obmc-linux-f0f879ba533ed29ca277c95d529fce703113271e.zip |
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>
Diffstat (limited to 'drivers/cpufreq/s3c24xx-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/s3c24xx-cpufreq.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index ae8eaed77b70..4567c3cab095 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/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++; |