Skip to contentSkip to conversation

drm/amdgpu: remove dead code in cik_program_aspm

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

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

PATCH 2/12 drm/amdgpu: remove dead code in cik_program_aspm

Since disable_clkreq is false, execution cannot reach this statement: clk_req_support = false.

---
 drivers/gpu/drm/amd/amdgpu/cik.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/cik.c +0 -2
index cf1d5d462b67..5428fd4071b8 100644
@@ -1777,8 +1777,6 @@ static void cik_program_aspm(struct amdgpu_device *adev)
 				pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap);
 				if (lnkcap & PCI_EXP_LNKCAP_CLKPM)
 					clk_req_support = true;
-			} else {
-				clk_req_support = false;
 			}
 
 			if (clk_req_support) {
Signature · 1 line
2.25.1