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

Submitted by Alex Deucher on Nov. 22, 2016, 4:57 p.m.

Details

Message ID 1479833848-14275-10-git-send-email-alexander.deucher@amd.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

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

Patch hide | download patch | download mbox

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;