Re: [PATCH] drm/amd/display: Remove redundant initialization of dpg_width

2022-01-14 Thread Alex Deucher
Applied. Thanks! On Fri, Jan 14, 2022 at 5:44 AM Jiapeng Chong wrote: > > dpg_width is being initialized to width but this is never read > as dpg_width is overwritten later on. Remove the redundant > initialization. > > Cleans up the following clang-analyzer warning: > > drivers/gpu/drm/amd/amdg

[PATCH] drm/amd/display: Remove redundant initialization of dpg_width

2022-01-14 Thread Jiapeng Chong
dpg_width is being initialized to width but this is never read as dpg_width is overwritten later on. Remove the redundant initialization. Cleans up the following clang-analyzer warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:6020:8: warning: Value stored to 'dpg_width' during