[PATCH] drm/amdgpu: Clean up errors in nbio_v7_4.c

From: XueBing Chen
Date: Wed Aug 23 2023 - 05:06:32 EST


Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line
ERROR: space prohibited before that ',' (ctx:WxW)

Signed-off-by: XueBing Chen <chenxuebing@xxxxxxx>
---
drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c b/drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c
index 685abf57ffdd..274f72cbd4dd 100644
--- a/drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c
+++ b/drivers/gpu/drm/amd/amdgpu/nbio_v7_4.c
@@ -234,7 +234,7 @@ static void nbio_v7_4_enable_doorbell_selfring_aperture(struct amdgpu_device *ad
static void nbio_v7_4_ih_doorbell_range(struct amdgpu_device *adev,
bool use_doorbell, int doorbell_index)
{
- u32 ih_doorbell_range = RREG32_SOC15(NBIO, 0 , mmBIF_IH_DOORBELL_RANGE);
+ u32 ih_doorbell_range = RREG32_SOC15(NBIO, 0, mmBIF_IH_DOORBELL_RANGE);

if (use_doorbell) {
ih_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, OFFSET, doorbell_index);
@@ -620,8 +620,7 @@ static void nbio_v7_4_query_ras_error_count(struct amdgpu_device *adev,
else
WREG32_PCIE(smnRAS_GLOBAL_STATUS_LO, global_sts);

- if (fatal)
- {
+ if (fatal) {
/* clear parity fatal error indication field */
if (adev->asic_type == CHIP_ALDEBARAN)
WREG32_PCIE(smnPARITY_ERROR_STATUS_UNCORR_GRP2_ALDE, parity_sts);
--
2.17.1