Skip to content

Commit ed7c28c

Browse files
Colin Ian Kingalexdeucher
authored andcommitted
drm/amd/display: Remove redundant initialization of variable eng_id
The variable eng_id is being initialized with a value that is never read, it is being re-assigned on the next statment. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 420c81c commit ed7c28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct link_encoder *link_enc_cfg_get_next_avail_link_enc(
305305
const struct dc_state *state)
306306
{
307307
struct link_encoder *link_enc = NULL;
308-
enum engine_id eng_id = ENGINE_ID_UNKNOWN;
308+
enum engine_id eng_id;
309309

310310
eng_id = find_first_avail_link_enc(dc->ctx, state);
311311
if (eng_id != ENGINE_ID_UNKNOWN)

0 commit comments

Comments
 (0)