drm/amd/powerplay: fix memdup.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Sat, 2 Mar 2019 06:50:36 +0000 (07:50 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:36 +0000 (15:36 -0500)
commit24bf582e27a8ac5ffab6c2f1b9541ebaeb250a3d
tree4cdf657427b82fdd0c423a1d32d29efc584c673a
parentd38ca8f0f1a44c0ffe1cc746edf16b245e188ea5
drm/amd/powerplay: fix memdup.cocci warnings

Simplify the code a bit by using kmemdup instead of kzalloc and memcpy.

Generated by: scripts/coccinelle/api/memdup.cocci

CC: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/vega20_ppt.c