diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2023-02-10 10:43:43 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-02-14 16:04:42 -0500 |
commit | 48e99fe4d3ba83d6b7bf288e90b360f83e1c6924 (patch) | |
tree | 46aed887b9e9ee0bac9acb0098e4685a1ba52808 /drivers | |
parent | ee3916b45add7ba9fa59b0e9832a5d24d34047d7 (diff) | |
download | linux-stable-48e99fe4d3ba83d6b7bf288e90b360f83e1c6924.tar.gz linux-stable-48e99fe4d3ba83d6b7bf288e90b360f83e1c6924.tar.bz2 linux-stable-48e99fe4d3ba83d6b7bf288e90b360f83e1c6924.zip |
drm/amd/display: Remove the unused variable pre_connection_type
Variable pre_connection_type is not effectively used, so delete it.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4031
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/link/link_detection.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c index 001a4ac9bfcf..29cdb61d66c8 100644 --- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c @@ -859,7 +859,6 @@ static bool detect_link_and_local_sink(struct dc_link *link, struct dc_sink *prev_sink = NULL; struct dpcd_caps prev_dpcd_caps; enum dc_connection_type new_connection_type = dc_connection_none; - enum dc_connection_type pre_connection_type = dc_connection_none; const uint32_t post_oui_delay = 30; // 30ms DC_LOGGER_INIT(link->ctx->logger); @@ -896,7 +895,6 @@ static bool detect_link_and_local_sink(struct dc_link *link, link_disconnect_sink(link); if (new_connection_type != dc_connection_none) { - pre_connection_type = link->type; link->type = new_connection_type; link->link_state_valid = false; |