From: Dmitry Osipenko Date: Fri, 18 May 2018 20:06:37 +0000 (+0300) Subject: cpufreq: tegra20: Remove unneeded check in tegra_cpu_init X-Git-Tag: v4.18-rc1~149^2~2^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f53908680ce4550a28810e967a0dd77176372d6d;p=thirdparty%2Fkernel%2Flinux.git cpufreq: tegra20: Remove unneeded check in tegra_cpu_init Remove checking of the CPU number for consistency as it won't ever fail unless there is a severe bug in the cpufreq core. Signed-off-by: Dmitry Osipenko Acked-by: Viresh Kumar Acked-by: Thierry Reding Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/tegra20-cpufreq.c b/drivers/cpufreq/tegra20-cpufreq.c index ea186d3f0faff..df25e350c8e62 100644 --- a/drivers/cpufreq/tegra20-cpufreq.c +++ b/drivers/cpufreq/tegra20-cpufreq.c @@ -35,8 +35,6 @@ static struct cpufreq_frequency_table freq_table[] = { { .frequency = CPUFREQ_TABLE_END }, }; -#define NUM_CPUS 2 - static struct clk *cpu_clk; static struct clk *pll_x_clk; static struct clk *pll_p_clk; @@ -122,9 +120,6 @@ static int tegra_cpu_init(struct cpufreq_policy *policy) { int ret; - if (policy->cpu >= NUM_CPUS) - return -EINVAL; - clk_prepare_enable(cpu_clk); /* FIXME: what's the actual transition time? */