diff options
author | Liao Yuanhong <liaoyuanhong@vivo.com> | 2025-09-03 20:12:27 +0800 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2025-09-04 10:20:44 +0530 |
commit | 3e681899cc6e6c77eca55dd8c7cc57b27868e8a2 (patch) | |
tree | f21ebeac94e0e99773ad08e4642f453779b0a403 /rust/kernel/xarray.rs | |
parent | 592532a77b736b5153e0c2e4c74aa50af0a352ab (diff) |
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/kernel/xarray.rs')
0 files changed, 0 insertions, 0 deletions