Skip to content

Commit

Permalink
cpufreq: Don't WARN_ON on non-existent cpu
Browse files Browse the repository at this point in the history
Signed-off-by: mawrick26 <mawrick26@gmail.com>
  • Loading branch information
mawrick26 authored and Hadenix committed Feb 2, 2024
1 parent 360dff1 commit 7146c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/cpufreq/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,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 */
Expand Down

0 comments on commit 7146c56

Please sign in to comment.