From: Viresh Kumar Date: Fri, 3 Jun 2016 05:28:46 +0000 (+0530) Subject: cpufreq: s3c24xx: Remove useless checks X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f0f879ba533ed29ca277c95d529fce703113271e;p=openwrt%2Fstaging%2Fblogic.git cpufreq: s3c24xx: Remove useless checks These aren't required at all, remove them. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- 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++;