Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Liao Yuanhong and committed by
Alex Deucher
a0556587 220c7a21

+1 -2
+1 -2
drivers/gpu/drm/radeon/radeon_pm.c
··· 907 907 908 908 static bool radeon_dpm_single_display(struct radeon_device *rdev) 909 909 { 910 - bool single_display = (rdev->pm.dpm.new_active_crtc_count < 2) ? 911 - true : false; 910 + bool single_display = rdev->pm.dpm.new_active_crtc_count < 2; 912 911 913 912 /* check if the vblank period is too short to adjust the mclk */ 914 913 if (single_display && rdev->asic->dpm.vblank_too_short) {