]> Gentwo Git Trees - linux/.git/commit
amdgpu/pm/legacy: remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 4 Sep 2025 08:21:11 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:39 +0000 (17:38 -0400)
commitdb51c5d98b03940d865002adba8a16939dc4c26a
treeb2ce4b4ca3fb817af4e58cfa1620de8f288d2f3a
parent53c271b9a06ca307c2ce6994877d8d084d031962
amdgpu/pm/legacy: 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.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c