drm/amdgpu: remove dead code in cik_program_aspm
Subsystems (2)
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.
Signed-off-by Jesse Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/cik.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/cik.c +0 -2
@@ -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