Skip to contentSkip to conversation

drm/amdgpu: clean up inconsistent indenting

PATCH Applied Colin King 3 participants 3 messages Sep 2, 2021 – Sep 7, 2021

Subsystems (3)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 drm/amdgpu: clean up inconsistent indenting

From: Colin Ian King <[email protected]>

There are a couple of statements that are indented one character too deeply, clean these up.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +3 -4
index d6aa032890ee..a573424a6e0b 100644
@@ -60,10 +60,9 @@ static vm_fault_t amdgpu_gem_fault(struct vm_fault *vmf)
 			goto unlock;
 		}
 
-		 ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
-						TTM_BO_VM_NUM_PREFAULT, 1);
-
-		 drm_dev_exit(idx);
+		ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
+					       TTM_BO_VM_NUM_PREFAULT, 1);
+		drm_dev_exit(idx);
 	} else {
 		ret = ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
 	}
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 02.09.21 um 23:45 schrieb Colin King:

Quoted 6 lines

From: Colin Ian King <[email protected]>

There are a couple of statements that are indented one character too deeply, clean these up.

Quoted 22 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +3 -4
index d6aa032890ee..a573424a6e0b 100644
@@ -60,10 +60,9 @@ static vm_fault_t amdgpu_gem_fault(struct vm_fault *vmf)
  			goto unlock;
  		}
 
-		 ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
-						TTM_BO_VM_NUM_PREFAULT, 1);
-
-		 drm_dev_exit(idx);
+		ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
+					       TTM_BO_VM_NUM_PREFAULT, 1);
+		drm_dev_exit(idx);
  	} else {
  		ret = ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
  	}
Applied
#2 lore raw

Applied. Thanks!

Alex

Quoted 34 lines · Christian König

Am 02.09.21 um 23:45 schrieb Colin King:

Quoted 6 lines

From: Colin Ian King <[email protected]>

There are a couple of statements that are indented one character too deeply, clean these up.

Quoted 22 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +3 -4
index d6aa032890ee..a573424a6e0b 100644
@@ -60,10 +60,9 @@ static vm_fault_t amdgpu_gem_fault(struct vm_fault *vmf)
                      goto unlock;
              }
 
-              ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
-                                             TTM_BO_VM_NUM_PREFAULT, 1);
-
-              drm_dev_exit(idx);
+             ret = ttm_bo_vm_fault_reserved(vmf, vmf->vma->vm_page_prot,
+                                            TTM_BO_VM_NUM_PREFAULT, 1);
+             drm_dev_exit(idx);
      } else {
              ret = ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
      }