]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: Use kmemdup instead of kmalloc and memcpy
authorTian Tao <tiantao6@hisilicon.com>
Tue, 10 Nov 2020 11:34:58 +0000 (19:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:27:54 +0000 (14:27 -0500)
commite5285ac82d7fd5ae0d7b290d4aa08718e4197b2b
treee279fefed6de417cddbeada6c01d618a674b25ce
parent03cc904cb1903912159ede500fb371db90702db7
drm/amd/pm: Use kmemdup instead of kmalloc and memcpy

Fixes coccicheck warning:
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c:255:
36-43: WARNING opportunity for kmemdup

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c