drm/amd/display: Simplify bool conversion
The result of relational operation is Boolean, and the question mark expression is redundant. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2027 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fc0cd4cd1f
commit
02bcbd6bfc
@ -1873,7 +1873,7 @@ void dml32_CalculateSurfaceSizeInMall(
|
||||
if (UseMALLForStaticScreen[k] == dm_use_mall_static_screen_enable)
|
||||
TotalSurfaceSizeInMALL = TotalSurfaceSizeInMALL + SurfaceSizeInMALL[k];
|
||||
}
|
||||
*ExceededMALLSize = (TotalSurfaceSizeInMALL <= MALLAllocatedForDCN * 1024 * 1024 ? false : true);
|
||||
*ExceededMALLSize = (TotalSurfaceSizeInMALL > MALLAllocatedForDCN * 1024 * 1024);
|
||||
} // CalculateSurfaceSizeInMall
|
||||
|
||||
void dml32_CalculateVMRowAndSwath(
|
||||
|
Loading…
x
Reference in New Issue
Block a user