drm/amd/powerplay/hwmgr: use kmemdup
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Thu, 19 May 2016 11:15:28 +0000 (16:45 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 May 2016 15:01:02 +0000 (11:01 -0400)
commitc688c641c514933aa82c9707c99a6fff8831e103
tree79599be64d55fd978090b8dbaecc5d2b375ee982
parent510e65dfb0e1817ef48c43839b8789131800a6f6
drm/amd/powerplay/hwmgr: use kmemdup

Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c