drm/amd/powerplay/hwmgr: use kmemdup
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Thu, 19 May 2016 11:15:27 +0000 (16:45 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 May 2016 15:00:07 +0000 (11:00 -0400)
commit761de5f9da8306c80c75883e0cbaa78f0244c1a0
treeb6c8909015ca2ca4ea44db6760a5c3ed25404ce4
parent3b59c344ab6e2d00b0f4ad946024572618c87502
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/fiji_hwmgr.c