OSDN Git Service

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)
commitc5927537dd5706b17affa8aeea28c7b19c8fbb42
tree4bcb1c9b199f032be613f02b6790dc113a8bf854
parent3f3333f8a0e90ac26f84ed7b0aa344efce695c08
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