]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/vcn: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Wed, 3 Sep 2025 12:03:50 +0000 (20:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 20:06:34 +0000 (16:06 -0400)
commit086f66edf9244d8c05b0ddf24631fe7f3472ac45
treeff298689fc5a522374c80d2c32b9e44d19cd6025
parent9502b09933ed8debe9888c69b10e79e3a2b66800
drm/amdgpu/vcn: 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.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c