For ternary operators in the form of "a ? true : false" or
"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.
Liao Yuanhong (3):
amdgpu/pm/legacy: remove redundant ternary operators
drm/amd/pm/powerplay/hwmgr/ppatomctrl: Remove redundant ternary
operators
drm/amd/pm/powerplay/smumgr: remove redundant ternary operators
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c | 3 +--
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 4 ++--
drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 5 ++---
drivers/gpu/drm/amd/pm/powerplay/smumgr/iceland_smumgr.c | 5 ++---
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c | 5 ++---
drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c | 5 ++---
6 files changed, 11 insertions(+), 16 deletions(-)
--
2.34.1