diff options
| author | 2025-09-04 16:21:13 +0800 | |
|---|---|---|
| committer | 2025-09-05 17:38:39 -0400 | |
| commit | 9ab06ab36d4a84d087e995233fe10d5d9496f908 (patch) | |
| tree | a565b2570d2465b48f5c85db90728624a4381b57 /rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com | |
| parent | drm/amd/pm/powerplay/hwmgr/ppatomctrl: Remove redundant ternary operators (diff) | |
| download | wireguard-linux-9ab06ab36d4a84d087e995233fe10d5d9496f908.tar.xz wireguard-linux-9ab06ab36d4a84d087e995233fe10d5d9496f908.zip | |
drm/amd/pm/powerplay/smumgr: remove redundant ternary operators
For ternary operators in the form of "a ? true : false", if 'a' itself
returns a boolean result, the ternary operator can be omitted. Remove
redundant ternary operators to clean up the code. Swap variable positions
on either side of '==' to enhance readability.
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/kernel/debugfs/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
