diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-03-30 22:39:17 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-04-03 13:54:21 -0400 |
| commit | e4465c0464a3d1b8d66d84c440ab1d49c483c01a (patch) | |
| tree | bad6947d0278bab381d73decd1710abcfb324efb /include/mtd/git@git.tavy.me:linux-stable.git | |
| parent | 95e21dff4717c0525f80c225884ddc391911b1c3 (diff) | |
drm/amd/pm: optimize logic and remove unnecessary checks in smu v15.0.8
the following two sets of logic are clearly mutually exclusive in
smu_v15_0_8_set_soft_freq_limited_range.
remove unnecessary code logic to keep the code logic clear.
e.g:
if (smu_dpm->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL)
return -EINVAL;
if (smu_dpm->dpm_level == AMD_DPM_FORCED_LEVEL_MANUAL) {
...
}
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
