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.

Liao Yuanhong (4):
  drm/radeon/atom: Remove redundant ternary operators
  drm/radeon/dpm: Remove redundant ternary operators
  drm/radeon/radeon_legacy_encoders: Remove redundant ternary operators
  drm/radeon/pm: Remove redundant ternary operators

 drivers/gpu/drm/radeon/atombios_encoders.c    |  2 +-
 drivers/gpu/drm/radeon/ci_dpm.c               |  8 ++++----
 drivers/gpu/drm/radeon/ni_dpm.c               |  2 +-
 .../gpu/drm/radeon/radeon_legacy_encoders.c   | 20 +++++++++----------
 drivers/gpu/drm/radeon/radeon_pm.c            |  3 +--
 5 files changed, 17 insertions(+), 18 deletions(-)

-- 
2.34.1

Reply via email to