Skip to content

Commit e2515e2

Browse files
Ran Sunalexdeucher
authored andcommitted
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 <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2b77f19 commit e2515e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,10 @@ static int xgpu_nv_send_access_requests(struct amdgpu_device *adev,
183183
if (req != IDH_REQ_GPU_INIT_DATA) {
184184
pr_err("Doesn't get msg:%d from pf, error=%d\n", event, r);
185185
return r;
186-
}
187-
else /* host doesn't support REQ_GPU_INIT_DATA handshake */
186+
} else /* host doesn't support REQ_GPU_INIT_DATA handshake */
188187
adev->virt.req_init_data_ver = 0;
189188
} else {
190-
if (req == IDH_REQ_GPU_INIT_DATA)
191-
{
189+
if (req == IDH_REQ_GPU_INIT_DATA) {
192190
adev->virt.req_init_data_ver =
193191
RREG32_NO_KIQ(mmMAILBOX_MSGBUF_RCV_DW1);
194192

0 commit comments

Comments
 (0)