diff options
author | 2023-10-18 13:34:29 +0800 | |
---|---|---|
committer | 2023-10-26 18:41:21 -0400 | |
commit | 493c75bbe3a89b5b178e61ef80f185a9614cbfaf (patch) | |
tree | 8b8a00dbed856819ff65c9702f4e24f720936d28 /drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | |
parent | drm/amdkfd: Fix shift out-of-bounds issue (diff) | |
download | linux-493c75bbe3a89b5b178e61ef80f185a9614cbfaf.tar.gz linux-493c75bbe3a89b5b178e61ef80f185a9614cbfaf.tar.bz2 linux-493c75bbe3a89b5b178e61ef80f185a9614cbfaf.zip |
drm/amdgpu: modify if condition in nbio_v7_7.c
remove unnecessary "enable" in if condition.
Signed-off-by: Li Ma <li.ma@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c index def89379b51a..4df1055e640a 100644 --- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c +++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c @@ -254,7 +254,7 @@ static void nbio_v7_7_update_medium_grain_clock_gating(struct amdgpu_device *ade { uint32_t def, data; - if (enable && !(adev->cg_flags & AMD_CG_SUPPORT_BIF_MGCG)) + if (!(adev->cg_flags & AMD_CG_SUPPORT_BIF_MGCG)) return; def = data = RREG32_SOC15(NBIO, 0, regBIF0_CPM_CONTROL); @@ -283,7 +283,7 @@ static void nbio_v7_7_update_medium_grain_light_sleep(struct amdgpu_device *adev { uint32_t def, data; - if (enable && !(adev->cg_flags & AMD_CG_SUPPORT_BIF_LS)) + if (!(adev->cg_flags & AMD_CG_SUPPORT_BIF_LS)) return; def = data = RREG32_SOC15(NBIO, 0, regBIF0_PCIE_CNTL2); |