diff options
author | Ran Sun <sunran001@208suo.com> | 2023-08-02 07:06:32 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-08-09 09:43:32 -0400 |
commit | e2515e2b905658a17246d5406125aa333597b436 (patch) | |
tree | 2118c738cb29cf7c1d20824ac3db76e404374021 /drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | |
parent | 2b77f199a5a8dc58c1c5404d3abfbb0f45b962c9 (diff) | |
download | linux-e2515e2b905658a17246d5406125aa333597b436.tar.gz linux-e2515e2b905658a17246d5406125aa333597b436.tar.bz2 linux-e2515e2b905658a17246d5406125aa333597b436.zip |
drm/amdgpu: Clean up errors in mxgpu_nv.c
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c index cae1aaa4ddb6..6a68ee946f1c 100644 --- a/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c @@ -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); |