lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250904113201.352187-1-liaoyuanhong@vivo.com>
Date: Thu,  4 Sep 2025 19:31:56 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: Alex Deucher <alexander.deucher@....com>,
	Christian König <christian.koenig@....com>,
	David Airlie <airlied@...il.com>,
	Simona Vetter <simona@...ll.ch>,
	amd-gfx@...ts.freedesktop.org (open list:RADEON and AMDGPU DRM DRIVERS),
	dri-devel@...ts.freedesktop.org (open list:DRM DRIVERS),
	linux-kernel@...r.kernel.org (open list)
Cc: Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH 0/4] drm/radeon: 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.

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ