mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 21:40:37 -04:00
drm/amd/display: remove redundant initialization of variable result
The variable result is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
078025afed
commit
140b93ebbf
@@ -4281,7 +4281,7 @@ void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode)
|
||||
|
||||
if (edp_config_set.bits.PANEL_MODE_EDP
|
||||
!= panel_mode_edp) {
|
||||
enum dc_status result = DC_ERROR_UNEXPECTED;
|
||||
enum dc_status result;
|
||||
|
||||
edp_config_set.bits.PANEL_MODE_EDP =
|
||||
panel_mode_edp;
|
||||
|
||||
Reference in New Issue
Block a user