[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250904082127.271638-1-liaoyuanhong@vivo.com>
Date: Thu, 4 Sep 2025 16:21:10 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: Kenneth Feng <kenneth.feng@....com>,
Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Lijo Lazar <lijo.lazar@....com>,
Mario Limonciello <mario.limonciello@....com>,
"chr[]" <chris@...orff.com>,
Charles Han <hanchunchao@...pur.com>,
"Dr. David Alan Gilbert" <linux@...blig.org>,
Ivan Stepchenko <sid@....spb.ru>,
amd-gfx@...ts.freedesktop.org (open list:AMD POWERPLAY AND SWSMU),
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/3] drm/amd/pm: remove redundant ternary operators
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
Powered by blists - more mailing lists