[PATCH 02/12] drm/amdgpu: remove dead code in cik_program_aspm
Jesse Zhang
jesse.zhang at amd.com
Mon Jun 3 08:46:28 UTC 2024
Since disable_clkreq is false, execution cannot reach this statement: clk_req_support = false.
Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/cik.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c
index cf1d5d462b67..5428fd4071b8 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik.c
@@ -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) {
--
2.25.1
More information about the amd-gfx
mailing list