diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-03 13:42:31 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-04 12:40:01 -0400 |
commit | c385d41604eeeab738281792e65238ee41528f5e (patch) | |
tree | 3c84a08832b3f5b4c50655e1915551ecca92d27b | |
parent | 7bee75a2ba822c9e573d10c411f6ac233c4c3790 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c index 53d7513b50832..adc710fe4a453 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser_helper.c @@ -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; } |