[PATCH 09/12] [PATCH 28/28] drm/amdgpu: remove dead code in cik_program_aspm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Jesse Zhang <Jesse.Zhang@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/cik.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/cik.c b/drivers/gpu/drm/amd/amdgpu/cik.c
index 5428fd4071b8..0ad736e775db 100644
--- a/drivers/gpu/drm/amd/amdgpu/cik.c
+++ b/drivers/gpu/drm/amd/amdgpu/cik.c
@@ -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);
-- 
2.25.1




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux