drm/amd/display: Remove duplicate/repeating expressions
Remove duplicate or repeating expressions in the if condition evaluation. Issue identified using doubletest.cocci Coccinelle semantic patch. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Deepak R Varma <drv@mailo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
578292aaec
commit
e26b51c79b
@ -2353,8 +2353,7 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
|
||||
|
||||
if (mode_lib->vba.DSCEnable[k] && mode_lib->vba.ForcedOutputLinkBPP[k] != 0)
|
||||
mode_lib->vba.DSCOnlyIfNecessaryWithBPP = true;
|
||||
if ((mode_lib->vba.DSCEnable[k] || mode_lib->vba.DSCEnable[k])
|
||||
&& mode_lib->vba.OutputFormat[k] == dm_n422
|
||||
if (mode_lib->vba.DSCEnable[k] && mode_lib->vba.OutputFormat[k] == dm_n422
|
||||
&& !mode_lib->vba.DSC422NativeSupport)
|
||||
mode_lib->vba.DSC422NativeNotSupported = true;
|
||||
|
||||
@ -3663,7 +3662,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
|
||||
if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64
|
||||
&& mode_lib->vba.SourcePixelFormat[k] != dm_444_32
|
||||
&& mode_lib->vba.SourcePixelFormat[k] != dm_444_16
|
||||
&& mode_lib->vba.SourcePixelFormat[k] != dm_444_16
|
||||
&& mode_lib->vba.SourcePixelFormat[k] != dm_444_8
|
||||
&& mode_lib->vba.SourcePixelFormat[k] != dm_rgbe) {
|
||||
if (mode_lib->vba.ViewportWidthChroma[k] > mode_lib->vba.SurfaceWidthC[k]
|
||||
|
Loading…
x
Reference in New Issue
Block a user