The variable disable_l1 is false and execution cannot reach the else branch.
Signed-off-by: Jesse Zhang <jesse.zh...@amd.com> --- drivers/gpu/drm/amd/amdgpu/si.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 85235470e872..d80eec275090 100644 --- a/drivers/gpu/drm/amd/amdgpu/si.c +++ b/drivers/gpu/drm/amd/amdgpu/si.c @@ -2598,9 +2598,6 @@ static void si_program_aspm(struct amdgpu_device *adev) WREG32(SPLL_CNTL_MODE, data); } } - } else { - if (orig != data) - WREG32_PCIE_PORT(PCIE_LC_CNTL, data); } orig = data = RREG32_PCIE(PCIE_CNTL2); -- 2.25.1