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

drm/amd/display: remove possible condition with no effect (if == else)

Conditional statements have no effect to next process.So remove it.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2028


Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 02bcbd6b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -4663,10 +4663,6 @@ void dml32_CalculateMinAndMaxPrefetchMode(
	} else if (AllowForPStateChangeOrStutterInVBlankFinal == dm_prefetch_support_uclk_fclk_and_stutter) {
		*MinPrefetchMode = 0;
		*MaxPrefetchMode = 0;
	} else if (AllowForPStateChangeOrStutterInVBlankFinal ==
			dm_prefetch_support_uclk_fclk_and_stutter_if_possible) {
		*MinPrefetchMode = 0;
		*MaxPrefetchMode = 3;
	} else {
		*MinPrefetchMode = 0;
		*MaxPrefetchMode = 3;