drm/amd/display: Remove useless assignments and variables
authorAlex Hung <alex.hung@amd.com>
Wed, 16 Oct 2024 18:18:39 +0000 (12:18 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2024 20:36:13 +0000 (16:36 -0400)
commitb0814fa3be76a8c62cbb9e02bb851b0ec234037d
tree5194a27926003c0d9f6365826fc18b6175c4f047
parentc56c0aca0a0ebb67cc9a609b4361b36dc2adb7c3
drm/amd/display: Remove useless assignments and variables

[WHAT & HOW]
misc0, temp and split_pipe are assigned but immediately re-assigned
to other values. The early assignments are useless and are removed.
Unused variables are removed as well.

This fixes 5 UNUSED_VALUE issues reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_mem_input_v.c
drivers/gpu/drm/amd/display/dc/dio/dcn10/dcn10_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dio/dcn401/dcn401_dio_stream_encoder.c