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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}