]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: Remove null check before kfree
authorHimanshu Jha <himanshujha199640@gmail.com>
Tue, 29 Aug 2017 13:21:27 +0000 (18:51 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:57:32 +0000 (15:57 -0400)
commit2df3d07f872a14363f141b40bc83c731dfda7bc0
tree4bcb1c9b199f032be613f02b6790dc113a8bf854
parent240695c9c58087f81114ef43bfed1e1123a07bc6
drm/amd: Remove null check before kfree

Kfree on NULL pointer is a no-op and therefore checking is redundant.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c