drm/amd/display: Remove condition with no effect
PATCH 1/1 drm/amd/display: Remove condition with no effect
From: Zhongjun Tan <[email protected]>
Remove condition with no effect
Signed-off-by Zhongjun Tan <[email protected]>
--- .../drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +0 -4
@@ -4670,10 +4670,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 ;
Signature · 1 line
2.29.0
Harry Wentland
maintainerQuoted 3 lines · Zhongjun Tan
From: Zhongjun Tan <[email protected]>
Remove condition with no effect
Please explain why you think this has no effect.
Harry
Quoted 21 lines
Signed-off-by Zhongjun Tan <[email protected]>--- .../drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +0
-4@@ -4670,10 +4670,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 ;