mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
7bee75a2ba
commit
c385d41604
1 changed files with 1 additions and 4 deletions
|
@ -82,9 +82,6 @@ void bios_set_scratch_critical_state(
|
|||
uint32_t bios_get_vga_enabled_displays(
|
||||
struct dc_bios *bios)
|
||||
{
|
||||
uint32_t active_disp = 1;
|
||||
|
||||
active_disp = REG_READ(BIOS_SCRATCH_3) & 0XFFFF;
|
||||
return active_disp;
|
||||
return REG_READ(BIOS_SCRATCH_3) & 0XFFFF;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue