mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/6] drm/amdgpu: Remove redundant ternary operators
@ 2025-09-03 12:03 Liao Yuanhong
  2025-09-03 12:03 ` [PATCH 1/6] drm/amdgpu/amdgpu_cper: " Liao Yuanhong
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Liao Yuanhong @ 2025-09-03 12:03 UTC (permalink / raw)
  To: Alex Deucher, Christian König, David Airlie, Simona Vetter,
	Tao Zhou, Xiang Liu, Hawking Zhang, Yang Wang, Victor Skvortsov,
	Colin Ian King, Sunil Khatri, Lijo Lazar, Shashank Sharma,
	Srinivasan Shanmugam, Prike Liang, Rodrigo Siqueira, Jesse.Zhang,
	Felix Kuehling, Boyuan Zhang, Kent Russell, André Almeida,
	Tim Huang, Yifan Zhang, Natalie Vock, Candice Li, Shaoyun Liu,
	David Belanger, Emily Deng, Sathishkumar S,
	David (Ming Qiang) Wu, Leo Liu, Stanley.Yang, Mangesh Gadre,
	fanhuang, Saleemkhan Jamadar,
	open list:RADEON and AMDGPU DRM DRIVERS, open list:DRM DRIVERS,
	open list
  Cc: Liao Yuanhong

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 (6):
  drm/amdgpu/amdgpu_cper: Remove redundant ternary operators
  drm/amdgpu/gfx: Remove redundant ternary operators
  drm/amdgpu/gmc: Remove redundant ternary operators
  drm/amdgpu/ih: Remove redundant ternary operators
  drm/amdgpu/jpeg: Remove redundant ternary operators
  drm/amdgpu/vcn: Remove redundant ternary operators

 drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c   | 3 +--
 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c   | 3 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c   | 3 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c   | 3 +--
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c   | 3 +--
 drivers/gpu/drm/amd/amdgpu/ih_v6_0.c     | 3 +--
 drivers/gpu/drm/amd/amdgpu/ih_v6_1.c     | 3 +--
 drivers/gpu/drm/amd/amdgpu/ih_v7_0.c     | 3 +--
 drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c  | 2 +-
 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c  | 2 +-
 14 files changed, 14 insertions(+), 22 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-03 14:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-03 12:03 [PATCH 0/6] drm/amdgpu: Remove redundant ternary operators Liao Yuanhong
2025-09-03 12:03 ` [PATCH 1/6] drm/amdgpu/amdgpu_cper: " Liao Yuanhong
2025-09-03 12:03 ` [PATCH 2/6] drm/amdgpu/gfx: " Liao Yuanhong
2025-09-03 12:03 ` [PATCH 3/6] drm/amdgpu/gmc: " Liao Yuanhong
2025-09-03 12:03 ` [PATCH 4/6] drm/amdgpu/ih: " Liao Yuanhong
2025-09-03 12:03 ` [PATCH 5/6] drm/amdgpu/jpeg: " Liao Yuanhong
2025-09-03 12:03 ` [PATCH 6/6] drm/amdgpu/vcn: " Liao Yuanhong
2025-09-03 12:41 ` [PATCH 0/6] drm/amdgpu: " Christian König
2025-09-03 14:36   ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®