drm/amdgpu: cleanup coding style in amdgpu_sync.c file
authorJingyu Wang <jingyuwang_vip@163.com>
Sun, 4 Sep 2022 18:33:07 +0000 (02:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:32:58 +0000 (14:32 -0400)
This is a patch to the amdgpu_sync.c file that fixes some warnings found by the checkpatch.pl tool

Signed-off-by: Jingyu Wang <jingyuwang_vip@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c

index 504af1b93bfa84e728127b7e1ee6afc035fe4156..090e66a1b2842e9ba6fff460ead0ff689e939c96 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: MIT
 /*
  * Copyright 2014 Advanced Micro Devices, Inc.
  * All Rights Reserved.
@@ -315,6 +316,7 @@ struct dma_fence *amdgpu_sync_get_fence(struct amdgpu_sync *sync)
        struct hlist_node *tmp;
        struct dma_fence *f;
        int i;
+
        hash_for_each_safe(sync->fences, i, tmp, e, node) {
 
                f = e->fence;
@@ -392,7 +394,7 @@ void amdgpu_sync_free(struct amdgpu_sync *sync)
 {
        struct amdgpu_sync_entry *e;
        struct hlist_node *tmp;
-       unsigned i;
+       unsigned int i;
 
        hash_for_each_safe(sync->fences, i, tmp, e, node) {
                hash_del(&e->node);