Skip to contentSkip to conversation

drm/amdgpu/mes: fix the inconsistent indenting for mes_userq_map()

PATCH In review Prike Liang 2 participants 2 messages Aug 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/mes: fix the inconsistent indenting for mes_userq_map()

Fix the inconsistent indenting warning for mes_userq_map().

Fixes d0827dda8fa7 ("drm/amdgpu/mes: refactor the amdgpu_mes_alloc/free_proc|gang()")
---
 drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +1 -1
index 80f84bc56664..cfee0a8a4b1e 100644
@@ -146,7 +146,7 @@ static int mes_userq_map(struct amdgpu_usermode_queue *queue)
 	queue_input.wptr_mc_addr = queue->wptr_obj.gpu_addr;
 
 	if (mes->use_rs64mem) {
-		 if (!uq_mgr->proc_ctx_allocated) {
+		if (!uq_mgr->proc_ctx_allocated) {
 			r = amdgpu_mes_alloc_proc_ctx_index(mes, &uq_mgr->proc_ctx_array_index);
 			if (r) {
 				DRM_ERROR("Failed to allocate userq process index err:%d\n", r);
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Prike Liang

Fix the inconsistent indenting warning for mes_userq_map().

Fixes d0827dda8fa7 ("drm/amdgpu/mes: refactor the amdgpu_mes_alloc/free_proc|gang()")
Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +1 -2
index 80f84bc56664..cfee0a8a4b1e 100644
@@ -146,7 +146,7 @@ static int mes_userq_map(struct amdgpu_usermode_queue *queue)
        queue_input.wptr_mc_addr = queue->wptr_obj.gpu_addr;
 
        if (mes->use_rs64mem) {
-                if (!uq_mgr->proc_ctx_allocated) {
+               if (!uq_mgr->proc_ctx_allocated) {
                        r = amdgpu_mes_alloc_proc_ctx_index(mes, &uq_mgr->proc_ctx_array_index);
                        if (r) {
                                DRM_ERROR("Failed to allocate userq process index err:%d\n", r);
--

2.34.1