]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: mediatek: avoid redundant conditions
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Wed, 3 Sep 2025 12:12:27 +0000 (20:12 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Sep 2025 04:50:44 +0000 (10:20 +0530)
commit3e681899cc6e6c77eca55dd8c7cc57b27868e8a2
treef21ebeac94e0e99773ad08e4642f453779b0a403
parent592532a77b736b5153e0c2e4c74aa50af0a352ab
cpufreq: mediatek: avoid redundant conditions

While 'if (i <= 0) ... else if (i > 0) ...' is technically equivalent to
'if (i <= 0) ... else ...', the latter is vastly easier to read because
it avoids writing out a condition that is unnecessary. Let's drop such
unnecessary conditions.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c