mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
drm/radeon/pm: 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. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
220c7a21cb
commit
a055658793
1 changed files with 1 additions and 2 deletions
|
|
@ -907,8 +907,7 @@ static void radeon_dpm_thermal_work_handler(struct work_struct *work)
|
|||
|
||||
static bool radeon_dpm_single_display(struct radeon_device *rdev)
|
||||
{
|
||||
bool single_display = (rdev->pm.dpm.new_active_crtc_count < 2) ?
|
||||
true : false;
|
||||
bool single_display = rdev->pm.dpm.new_active_crtc_count < 2;
|
||||
|
||||
/* check if the vblank period is too short to adjust the mclk */
|
||||
if (single_display && rdev->asic->dpm.vblank_too_short) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue