Commit b3ef3205 authored by Haowen Bai's avatar Haowen Bai Committed by Alex Deucher

drm/amdgpu: Remove useless kfree

After alloc fail, we do not need to kfree.
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a2443ef0
......@@ -1921,7 +1921,6 @@ static int amdgpu_ras_realloc_eh_data_space(struct amdgpu_device *adev,
void *bps = kmalloc(align_space * sizeof(*data->bps), GFP_KERNEL);
if (!bps) {
kfree(bps);
return -ENOMEM;
}
......
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