Commit 38dbbfa5 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher

drm/amdgpu: fix coding style issue for mca notifier

Fix some issues found by checkpatch script.
Signed-off-by: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fb4d5891
...@@ -2877,9 +2877,9 @@ static int amdgpu_bad_page_notifier(struct notifier_block *nb, ...@@ -2877,9 +2877,9 @@ static int amdgpu_bad_page_notifier(struct notifier_block *nb,
err_data.err_addr = err_data.err_addr =
kcalloc(adev->umc.max_ras_err_cnt_per_query, kcalloc(adev->umc.max_ras_err_cnt_per_query,
sizeof(struct eeprom_table_record), GFP_KERNEL); sizeof(struct eeprom_table_record), GFP_KERNEL);
if(!err_data.err_addr) { if (!err_data.err_addr) {
dev_warn(adev->dev, "Failed to alloc memory for " dev_warn(adev->dev,
"umc error address record in mca notifier!\n"); "Failed to alloc memory for umc error record in mca notifier!\n");
return NOTIFY_DONE; return NOTIFY_DONE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment