aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorLiao Yuanhong <liaoyuanhong@vivo.com>2025-09-03 20:12:27 +0800
committerViresh Kumar <viresh.kumar@linaro.org>2025-09-04 10:20:44 +0530
commit3e681899cc6e6c77eca55dd8c7cc57b27868e8a2 (patch)
treef21ebeac94e0e99773ad08e4642f453779b0a403 /rust/helpers/helpers.c
parentcpufreq/longhaul: handle NULL policy in longhaul_exit (diff)
downloadlinux-3e681899cc6e6c77eca55dd8c7cc57b27868e8a2.tar.gz
linux-3e681899cc6e6c77eca55dd8c7cc57b27868e8a2.zip
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>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions