Skip to content

Commit 508a47d

Browse files
Dan Carpenteralexdeucher
authored andcommitted
drm/amd/pm: fix indenting in __smu_cmn_reg_print_error()
Smatch complains that the dev_err_ratelimited() is indented one tab more than the surrounding lines. drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu_cmn.c:174 __smu_cmn_reg_print_error() warn: inconsistent indenting It looks like it's not a bug, just that the indenting needs to be cleaned up. Reviewed-by: Luben Tuikov <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 28b7382 commit 508a47d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,17 @@ static void __smu_cmn_reg_print_error(struct smu_context *smu,
164164

165165
switch (reg_c2pmsg_90) {
166166
case SMU_RESP_NONE: {
167-
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 5)) {
168-
msg_idx = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_2);
169-
prm = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_34);
170-
} else {
171-
msg_idx = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66);
172-
prm = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_82);
173-
}
167+
if (adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 5)) {
168+
msg_idx = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_2);
169+
prm = RREG32_SOC15(MP1, 0, mmMP1_C2PMSG_34);
170+
} else {
171+
msg_idx = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66);
172+
prm = RREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_82);
173+
}
174174
dev_err_ratelimited(adev->dev,
175175
"SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x%08X SMN_C2PMSG_82:0x%08X",
176176
msg_idx, prm);
177-
}
177+
}
178178
break;
179179
case SMU_RESP_OK:
180180
/* The SMU executed the command. It completed with a

0 commit comments

Comments
 (0)