]> Gentwo Git Trees - linux/.git/commit
drm/amdgpu/amdgpu_cper: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Wed, 3 Sep 2025 12:03:45 +0000 (20:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Sep 2025 20:00:04 +0000 (16:00 -0400)
commit7670daf65afae2d6d08b300df64c96439e813b3a
tree61aad53aef25f2c35b045aa3c67c1dc62d492ead
parent4320fd9e0d817f63b31dc380a1127335c445083c
drm/amdgpu/amdgpu_cper: 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/amdgpu_cper.c