]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix unnecessary NULL check warnings
authorTian Tao <tiantao6@hisilicon.com>
Tue, 9 Feb 2021 08:29:23 +0000 (16:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Feb 2021 20:49:33 +0000 (15:49 -0500)
commit2a2d6c0872d8a24e4ae6c59c0437f6d010e0d019
tree9911582c5a5665c59695049342e1eabbaff9c9fe
parent4b4ccc9210ca59e9baea12abbf5bfd089527f855
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: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c