From: Yang Li Date: Wed, 18 Oct 2023 01:22:32 +0000 (+0800) Subject: drm/amd/display: Simplify bool conversion X-Git-Tag: microblaze-v6.8~11^2~9^2~25 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=30440201edb0eb20352f5dfb509d407f4015259d;p=linux-2.6-microblaze.git drm/amd/display: Simplify bool conversion ./drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c:4802:84-89: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6901 Signed-off-by: Yang Li Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c b/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c index b2e187098fbc..cff53d28d3c5 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c @@ -4799,7 +4799,7 @@ static void CalculateSurfaceSizeInMall( if (UseMALLForStaticScreen[k] == dml_use_mall_static_screen_enable) TotalSurfaceSizeInMALL = TotalSurfaceSizeInMALL + SurfaceSizeInMALL[k]; } - *ExceededMALLSize = (TotalSurfaceSizeInMALL <= MALLAllocatedForDCN * 1024 * 1024 ? false : true); + *ExceededMALLSize = (TotalSurfaceSizeInMALL > MALLAllocatedForDCN * 1024 * 1024); } // CalculateSurfaceSizeInMall static void CalculateDETBufferSize(