Skip to contentSkip to conversation

drm/amdgpu: remove dead code in si_program_aspm

PATCH In review Jesse Zhang 1 participant 1 message Jun 3, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/12 drm/amdgpu: remove dead code in si_program_aspm

The variable disable_l1 is false and execution cannot reach the else branch.

---
 drivers/gpu/drm/amd/amdgpu/si.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/si.c +0 -3
index 85235470e872..d80eec275090 100644
@@ -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);
Signature · 1 line
2.25.1