[PATCH 10/11] drm/amd/dal/dc: fix warning in dc_link_dp_set_test_pattern

Alex Deucher alexdeucher at gmail.com
Tue Nov 22 16:57:27 UTC 2016


Reviewed-by: Harry Wentland <harry.wentland at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
index 2b0b23a..2585ec3 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c
@@ -2309,6 +2309,7 @@ bool dc_link_dp_set_test_pattern(
 	unsigned char link_qual_pattern[LANE_COUNT_DP_MAX] = {0};
 	union dpcd_training_pattern training_pattern;
 	union test_response test_response;
+	enum dpcd_phy_test_patterns pattern;
 
 	memset(&training_pattern, 0, sizeof(training_pattern));
 	memset(&test_response, 0, sizeof(test_response));
@@ -2376,8 +2377,6 @@ bool dc_link_dp_set_test_pattern(
 						p_link_settings);
 		}
 
-		enum dpcd_phy_test_patterns pattern;
-
 		switch (test_pattern) {
 		case DP_TEST_PATTERN_VIDEO_MODE:
 			pattern = PHY_TEST_PATTERN_NONE;
-- 
2.5.5



More information about the amd-gfx mailing list