OSDN Git Service

drm/amdgpu: cleanup coding style in amdkfd a bit
authorBernard Zhao <bernard@vivo.com>
Wed, 22 Apr 2020 01:46:18 +0000 (18:46 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:49 +0000 (18:11 -0400)
commit10f39758b8f3d2e6ba3bb4aa731123c6cf2271ea
treed809b3a22bd6c92f438f8e65e5c7eda362de194b
parente05185b34157ba606bd2200bcc3c335cf19422ae
drm/amdgpu: cleanup coding style in amdkfd a bit

Make the code a bit more readable by using a common
error handling pattern.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Reviewed-by: Christian König <christian.koenig@amd.com>.
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c