diff options
author | Huang Rui <ray.huang@amd.com> | 2017-06-01 22:42:28 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-14 11:06:11 -0400 |
commit | edc4d3db0660624996ef4d1bbc7e8b39572fbe2e (patch) | |
tree | 31e9c14868b4aaef95e2b3f1b42b92dc70e4710e /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |
parent | 57ea8c7b4d831caac27631329507baf2fbe094ae (diff) |
drm/amdgpu: remove superfluous check
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 4083be61b328..dc2cc28c9588 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | |||
@@ -435,16 +435,11 @@ static int psp_hw_fini(void *handle) | |||
435 | 435 | ||
436 | psp_ring_destroy(psp, PSP_RING_TYPE__KM); | 436 | psp_ring_destroy(psp, PSP_RING_TYPE__KM); |
437 | 437 | ||
438 | if (psp->tmr_buf) | 438 | amdgpu_bo_free_kernel(&psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf); |
439 | amdgpu_bo_free_kernel(&psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf); | 439 | amdgpu_bo_free_kernel(&psp->fw_pri_bo, |
440 | 440 | &psp->fw_pri_mc_addr, &psp->fw_pri_buf); | |
441 | if (psp->fw_pri_buf) | 441 | amdgpu_bo_free_kernel(&psp->fence_buf_bo, |
442 | amdgpu_bo_free_kernel(&psp->fw_pri_bo, | 442 | &psp->fence_buf_mc_addr, &psp->fence_buf); |
443 | &psp->fw_pri_mc_addr, &psp->fw_pri_buf); | ||
444 | |||
445 | if (psp->fence_buf_bo) | ||
446 | amdgpu_bo_free_kernel(&psp->fence_buf_bo, | ||
447 | &psp->fence_buf_mc_addr, &psp->fence_buf); | ||
448 | 443 | ||
449 | kfree(psp->cmd); | 444 | kfree(psp->cmd); |
450 | psp->cmd = NULL; | 445 | psp->cmd = NULL; |