diff options
author | 2018-09-07 19:09:55 +0300 | |
---|---|---|
committer | 2018-09-10 12:04:42 +0200 | |
commit | 0e7ea2f3b0e09333e54fb8322f85a45cb01fdd61 (patch) | |
tree | de13fcf0cb0efb33463b7fcaf06e39d9fea77fef /drivers/cpufreq | |
parent | Linux 4.19-rc3 (diff) | |
download | linux-0e7ea2f3b0e09333e54fb8322f85a45cb01fdd61.tar.gz linux-0e7ea2f3b0e09333e54fb8322f85a45cb01fdd61.tar.bz2 linux-0e7ea2f3b0e09333e54fb8322f85a45cb01fdd61.zip |
cpufreq: remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it
into another.
Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index f53fb41efb7b..7aa3dcad2175 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -403,7 +403,7 @@ EXPORT_SYMBOL_GPL(cpufreq_freq_transition_begin); void cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) { - if (unlikely(WARN_ON(!policy->transition_ongoing))) + if (WARN_ON(!policy->transition_ongoing)) return; cpufreq_notify_post_transition(policy, freqs, transition_failed); |