Skip to content

Commit 2b2b585

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu: Clean up errors in vcn_v4_0.c
Fix the following errors reported by checkpatch: spaces required around that '==' (ctx:VxV) ERROR: space required before the open parenthesis '(' 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 c8a1439 commit 2b2b585

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,11 +1139,11 @@ static int vcn_v4_0_start(struct amdgpu_device *adev)
11391139
if (status & 2)
11401140
break;
11411141
mdelay(10);
1142-
if (amdgpu_emu_mode==1)
1142+
if (amdgpu_emu_mode == 1)
11431143
msleep(1);
11441144
}
11451145

1146-
if (amdgpu_emu_mode==1) {
1146+
if (amdgpu_emu_mode == 1) {
11471147
r = -1;
11481148
if (status & 2) {
11491149
r = 0;
@@ -1959,15 +1959,15 @@ static int vcn_v4_0_set_powergating_state(void *handle, enum amd_powergating_sta
19591959
return 0;
19601960
}
19611961

1962-
if(state == adev->vcn.cur_state)
1962+
if (state == adev->vcn.cur_state)
19631963
return 0;
19641964

19651965
if (state == AMD_PG_STATE_GATE)
19661966
ret = vcn_v4_0_stop(adev);
19671967
else
19681968
ret = vcn_v4_0_start(adev);
19691969

1970-
if(!ret)
1970+
if (!ret)
19711971
adev->vcn.cur_state = state;
19721972

19731973
return ret;
@@ -2101,8 +2101,7 @@ static const struct amd_ip_funcs vcn_v4_0_ip_funcs = {
21012101
.set_powergating_state = vcn_v4_0_set_powergating_state,
21022102
};
21032103

2104-
const struct amdgpu_ip_block_version vcn_v4_0_ip_block =
2105-
{
2104+
const struct amdgpu_ip_block_version vcn_v4_0_ip_block = {
21062105
.type = AMD_IP_BLOCK_TYPE_VCN,
21072106
.major = 4,
21082107
.minor = 0,

0 commit comments

Comments
 (0)