]> Gentwo Git Trees - linux/.git/commit
drm/radeon/pm: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 4 Sep 2025 11:32:00 +0000 (19:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:40 +0000 (17:38 -0400)
commita055658793ddce9f2554c0d77e4b404cd0ac4107
tree5cd965409fc9a9cb6ddc820575d44fca3f7337ef
parent220c7a21cb0a570fd0a44ce71e2e4a3a5f342fde
drm/radeon/pm: 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/radeon/radeon_pm.c