drm/amd/display: Remove redundant initializers
authorAlex Hung <alex.hung@amd.com>
Wed, 18 Feb 2026 16:30:32 +0000 (09:30 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Mar 2026 21:39:12 +0000 (16:39 -0500)
commit83b75278eb56ebc4cb73caf67572144293b739a9
treeedbda66e59b23614706a0b07f136023b3fb89a17
parentb91cfeb6f2ddf720a06506a1d1e5d9e76d3bd129
drm/amd/display: Remove redundant initializers

[WHAT]
Remove unnecessary default value assignments for variables that
are unconditionally assigned before use.

Linux kernel code style prefers no assignments during initialization
when variables are assigned unconditionally as they can obscures
the actual data flow. In addition, compilers will be able to catch them
if variables are used without being updated later in all conditions.

This is reported as UNUSED_VALUE errors by Coverity.

Reviewed-by: Roman Li <roman.li@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn42/dcn42_smu.c
drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c