Adjust the code format.

Signed-off-by: yipechai <yipeng.c...@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 7afeec4255bd..54d807b021fe 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2764,9 +2764,8 @@ int amdgpu_ras_register_ras_block(struct amdgpu_device 
*adev,
 
        /* If the ras object is in ras_list, don't add it again */
        list_for_each_entry_safe(obj, tmp, &adev->ras_list, node) {
-               if (obj == ras_block_obj) {
+               if (obj == ras_block_obj)
                        return 0;
-               }
        }
 
        INIT_LIST_HEAD(&ras_block_obj->node);
-- 
2.25.1

Reply via email to