Commit df1f0560 authored by Yang Li's avatar Yang Li Committed by Alex Deucher
Browse files

drm/amd/display: Simplify bool comparison



Fix the following coccicheck warning:
./drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c:3141:30-39:
WARNING: Comparison to bool

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <abaci-bugfix@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4c673592
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3138,7 +3138,7 @@ static void CalculateFlipSchedule(
				4.0 * (TimeForFetchingMetaPTEImmediateFlip / LineTime + 0.125),
				1) / 4.0;

		if ((GPUVMEnable == true || DCCEnable == true)) {
		if ((GPUVMEnable || DCCEnable)) {
			mode_lib->vba.ImmediateFlipBW[0] = BandwidthAvailableForImmediateFlip
					* ImmediateFlipBytes / TotImmediateFlipBytes;
			TimeForFetchingRowInVBlankImmediateFlip = dml_max(