Skip to contentSkip to conversation

drm/amdgpu: remove dead code in cik_program_aspm

PATCH New Jesse Zhang 1 participant 1 message Jun 3, 2024

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

PATCH 28/28 drm/amdgpu: remove dead code in cik_program_aspm

Since disable_l1 is false, the else branch cannot be reached.

---
 drivers/gpu/drm/amd/amdgpu/cik.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/cik.c +0 -3
index 5428fd4071b8..0ad736e775db 100644
@@ -1819,9 +1819,6 @@ static void cik_program_aspm(struct amdgpu_device *adev)
 					WREG32_SMC(ixMPLL_BYPASSCLK_SEL, data);
 			}
 		}
-	} else {
-		if (orig != data)
-			WREG32_PCIE(ixPCIE_LC_CNTL, data);
 	}
 
 	orig = data = RREG32_PCIE(ixPCIE_CNTL2);
Signature · 1 line
2.25.1