drm/amdgpu: Clean up errors in mxgpu_nv.c
authorRan Sun <sunran001@208suo.com>
Wed, 2 Aug 2023 07:06:32 +0000 (07:06 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:43:32 +0000 (09:43 -0400)
Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'
ERROR: that open brace { should be on the previous line

Signed-off-by: Ran Sun <sunran001@208suo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c

index cae1aaa4ddb68cefc817b8c32a23d42ea077aea3..6a68ee946f1cc3f58862a8c67fd3c53f4fdb092b 100644 (file)
@@ -183,12 +183,10 @@ send_request:
                        if (req != IDH_REQ_GPU_INIT_DATA) {
                                pr_err("Doesn't get msg:%d from pf, error=%d\n", event, r);
                                return r;
-                       }
-                       else /* host doesn't support REQ_GPU_INIT_DATA handshake */
+                       } else /* host doesn't support REQ_GPU_INIT_DATA handshake */
                                adev->virt.req_init_data_ver = 0;
                } else {
-                       if (req == IDH_REQ_GPU_INIT_DATA)
-                       {
+                       if (req == IDH_REQ_GPU_INIT_DATA) {
                                adev->virt.req_init_data_ver =
                                        RREG32_NO_KIQ(mmMAILBOX_MSGBUF_RCV_DW1);