From a696dc208fa123d7c710ae757d3f621e9ab8b081 Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Tue, 31 Oct 2017 15:17:27 -0400 Subject: [PATCH] drm/amd/display: Remove unused register read in program_pwl Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Reviewed-by: Anthony Koo Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c index 97414abbc69d..330dbe9989d4 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c @@ -1181,7 +1181,6 @@ static void program_pwl( struct dce_transform *xfm_dce, const struct pwl_params *params) { - uint32_t value; int retval; uint8_t max_tries = 10; uint8_t counter = 0; @@ -1198,7 +1197,6 @@ static void program_pwl( while (counter < max_tries) { if (REG(DCFE_MEM_PWR_STATUS)) { - value = REG_READ(DCFE_MEM_PWR_STATUS); REG_GET(DCFE_MEM_PWR_STATUS, DCP_REGAMMA_MEM_PWR_STATE, &retval); @@ -1207,7 +1205,6 @@ static void program_pwl( break; ++counter; } else { - value = REG_READ(DCFE_MEM_LIGHT_SLEEP_CNTL); REG_GET(DCFE_MEM_LIGHT_SLEEP_CNTL, REGAMMA_LUT_MEM_PWR_STATE, &retval);