mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
cpufreq: Don't WARN_ON on non-existent cpu
Change-Id: I740ca7c1faaaa04560c65637f087af64f932280b Signed-off-by: mawrick26 <mawrick26@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
620f019a86
commit
3ddc64a88c
@ -235,7 +235,7 @@ struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu)
|
||||
struct cpufreq_policy *policy = NULL;
|
||||
unsigned long flags;
|
||||
|
||||
if (WARN_ON(cpu >= nr_cpu_ids))
|
||||
if (cpu >= nr_cpu_ids)
|
||||
return NULL;
|
||||
|
||||
/* get the cpufreq driver */
|
||||
|
Loading…
x
Reference in New Issue
Block a user