Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: remove variable active_disp

The variable active_disp is being initialized with a value that
is never read, it is being re-assigned immediately afterwards.
Clean up the code by removing the need for variable active_disp.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Colin Ian King and committed by
Alex Deucher
c385d416 7bee75a2

+1 -4
+1 -4
drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c
··· 82 82 uint32_t bios_get_vga_enabled_displays( 83 83 struct dc_bios *bios) 84 84 { 85 - uint32_t active_disp = 1; 86 - 87 - active_disp = REG_READ(BIOS_SCRATCH_3) & 0XFFFF; 88 - return active_disp; 85 + return REG_READ(BIOS_SCRATCH_3) & 0XFFFF; 89 86 } 90 87