Commit 802b8c83 authored by Tian Tao's avatar Tian Tao Committed by Alex Deucher
Browse files

drm/amdgpu: fix unnecessary NULL check warnings



Remove NULL checks before vfree() to fix these warnings:
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:102:2-8: WARNING: NULL
check before some freeing functions is not needed.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d7ef887f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -98,7 +98,6 @@ static int amdgpu_cs_bo_handles_chunk(struct amdgpu_cs_parser *p,
	return 0;

error_free:
	if (info)
	kvfree(info);

	return r;