drm/amd/powerplay/hwmgr: Remove null check before kfree
authorHimanshu Jha <himanshujha199640@gmail.com>
Tue, 29 Aug 2017 13:12:27 +0000 (18:42 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:57:33 +0000 (15:57 -0400)
commitebe02de2c60caa3ee5a1b39c7c8b2a40e1fda2d8
tree94d8b4f49f5f89d743de628568e20b3c178c5bff
parentc5927537dd5706b17affa8aeea28c7b19c8fbb42
drm/amd/powerplay/hwmgr: Remove null check before kfree

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

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
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/powerplay/hwmgr/cz_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c
drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c