Re: [PATCH -next v3] drm/amd/amdgpu: Use kmemdup to simplify kmalloc and memcpy logic

2023-08-16 Thread Alex Deucher
Applied. Thanks! Alex On Tue, Aug 15, 2023 at 10:20 PM Chen Jiahao wrote: > > Using kmemdup() helper function rather than implementing it again > with kmalloc() + memcpy(), which improves the code readability. > > Signed-off-by: Chen Jiahao > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_connectors

[PATCH -next v3] drm/amd/amdgpu: Use kmemdup to simplify kmalloc and memcpy logic

2023-08-15 Thread Chen Jiahao
Using kmemdup() helper function rather than implementing it again with kmalloc() + memcpy(), which improves the code readability. Signed-off-by: Chen Jiahao --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/