Skip to contentSkip to conversation

drm/amd/display: Remove the unused variable pre_connection_type

PATCH Applied Jiapeng Chong 2 participants 2 messages Feb 10, 2023 – Feb 13, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Remove the unused variable pre_connection_type

Variable pre_connection_type is not effectively used, so delete it.

---
 drivers/gpu/drm/amd/display/dc/link/link_detection.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/dc/link/link_detection.c +0 -2
index 63e75c392031..d224a44c4cc8 100644
@@ -886,7 +886,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);
@@ -923,7 +922,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;
 
Signature · 1 line
2.20.1.7.g153144c
Applied
#1 lore raw

Applied. Thanks!

Quoted 33 lines · Jiapeng Chong

Variable pre_connection_type is not effectively used, so delete it.

---
 drivers/gpu/drm/amd/display/dc/link/link_detection.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/dc/link/link_detection.c +0 -3
index 63e75c392031..d224a44c4cc8 100644
@@ -886,7 +886,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);
@@ -923,7 +922,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;
 
--

2.20.1.7.g153144c