]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/gfx: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Wed, 3 Sep 2025 12:03:46 +0000 (20:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 20:00:09 +0000 (16:00 -0400)
commitd261e744af55179fcdd71fa767088421e6dea158
tree55b3bda3f39991d344fd9e27e2993055dfb22896
parent7670daf65afae2d6d08b300df64c96439e813b3a
drm/amdgpu/gfx: Remove redundant ternary operators

For ternary operators in the form of "a ? false : true", 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/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c