]> Gentwo Git Trees - linux/.git/commit
drm/radeon/radeon_legacy_encoders: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 4 Sep 2025 11:31:59 +0000 (19:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 21:38:40 +0000 (17:38 -0400)
commit220c7a21cb0a570fd0a44ce71e2e4a3a5f342fde
tree92dd89fce99f8f55795b38149fffcfe9ae3f7e4a
parent60d6f01b5a7de4f1475774cc807840a002d601d6
drm/radeon/radeon_legacy_encoders: 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_legacy_encoders.c