drm/amd/display: Remove unused register read in program_pwl
authorHarry Wentland <harry.wentland@amd.com>
Tue, 31 Oct 2017 19:17:27 +0000 (15:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:37 +0000 (12:47 -0500)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c

index 97414ab..330dbe9 100644 (file)
@@ -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);