drm/amd/display/dc/dce112/dce112_resource: Drop redundant null-pointer check in bw_calcs_data_update_from_pplib()
Subsystems (3)
PATCH 1/1 drm/amd/display/dc/dce112/dce112_resource: Drop redundant null-pointer check in bw_calcs_data_update_from_pplib()
The variable dc->bw_vbios is guaranteed to be not NULL by its callers. Thus the null-pointer check can be dropped.
Reported-by TOTE Robot <[email protected]>
Signed-off-by Tuo Li <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +1 -1
@@ -1064,7 +1064,7 @@ static void bw_calcs_data_update_from_pplib(struct dc *dc)struct dm_pp_clock_levels clks = {0 };int memory_type_multiplier =MEMORY_TYPE_MULTIPLIER_CZ ; -if (dc->bw_vbios && dc->bw_vbios->memory_type == bw_def_hbm) +if (dc->bw_vbios->memory_type == bw_def_hbm) memory_type_multiplier =MEMORY_TYPE_HBM ;/*do system clock TODO PPLIB: after PPLIB implement,
Signature · 1 line
2.25.1