Skip to content

Commit

Permalink
drm/amdkfd: Fix some coding indentation
Browse files Browse the repository at this point in the history
Recently introduced patch to fix a criu regression due to a rebase,
had some off indentation and extra newline. Fix that to stay close to
the upstream version.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
(cherry picked from commit fb5365c)

Change-Id: I979d792b022bb07b6c11503d79ac74fd26bacb6a
  • Loading branch information
Rajneesh Bhardwaj authored and Kent Russell committed Aug 31, 2022
1 parent 7ebb572 commit 28d5cc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
Original file line number Diff line number Diff line change
@@ -3538,7 +3538,7 @@ static int criu_restore_memory_of_gpu(struct kfd_process_device *pdd,
KFD_IOC_ALLOC_MEM_FLAGS_GTT |
KFD_IOC_ALLOC_MEM_FLAGS_USERPTR |
KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL |
KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP);
KFD_IOC_ALLOC_MEM_FLAGS_MMIO_REMAP);

idr_handle = kfd_process_device_create_obj_handle(pdd, *kgd_mem,
bo_bucket->addr,
@@ -3548,8 +3548,7 @@ static int criu_restore_memory_of_gpu(struct kfd_process_device *pdd,

if (idr_handle < 0) {
pr_err("Could not allocate idr\n");
amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->adev, *kgd_mem,
pdd->drm_priv,
amdgpu_amdkfd_gpuvm_free_memory_of_gpu(pdd->dev->adev, *kgd_mem, pdd->drm_priv,
NULL);
return -ENOMEM;
}

0 comments on commit 28d5cc6

Please sign in to comment.