drm/amdgpu: fix coding style issue for mca notifier
authorTao Zhou <tao.zhou1@amd.com>
Thu, 29 Sep 2022 06:59:11 +0000 (14:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Oct 2022 15:05:29 +0000 (11:05 -0400)
Fix some issues found by checkpatch script.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index c2f9970..2dad7aa 100644 (file)
@@ -2877,9 +2877,9 @@ static int amdgpu_bad_page_notifier(struct notifier_block *nb,
        err_data.err_addr =
                kcalloc(adev->umc.max_ras_err_cnt_per_query,
                        sizeof(struct eeprom_table_record), GFP_KERNEL);
-       if(!err_data.err_addr) {
-               dev_warn(adev->dev, "Failed to alloc memory for "
-                               "umc error address record in mca notifier!\n");
+       if (!err_data.err_addr) {
+               dev_warn(adev->dev,
+                       "Failed to alloc memory for umc error record in mca notifier!\n");
                return NOTIFY_DONE;
        }