From: Ivan Lipski Date: Tue, 4 Jun 2024 14:22:31 +0000 (-0400) Subject: drm/amd/display: Remove redundant condition with DEADCODE X-Git-Tag: v6.11-rc1~141^2~18^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9061707976c68899cf2f3b9117c5bbcee8e6872c;p=thirdparty%2Fkernel%2Flinux.git drm/amd/display: Remove redundant condition with DEADCODE [WHY] Coverity analysis flagged this condition as DEADCODE since the variable 'req128_c' is always false, thus the condition is never true. [HOW] Remove the condition. Reviewed-by: Aurabindo Pillai Acked-by: Hamza Mahfooz Signed-off-by: Ivan Lipski Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c b/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c index 618f4b682ab1b..708e1632170dd 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c @@ -297,9 +297,6 @@ static void handle_det_buf_split( if (swath_height_c > 0) log2_swath_height_c = dml_log2(swath_height_c); - - if (req128_c && log2_swath_height_c > 0) - log2_swath_height_c -= 1; } rq_param->dlg.rq_l.swath_height = 1 << log2_swath_height_l;