thunderbolt: Use kmemdup instead of kzalloc and memcpy
Fixes coccicheck warning: drivers/thunderbolt/dma_test.c:302:13-20: WARNING opportunity for kmemdup. Signed-off-by: NTian Tao <tiantao6@hisilicon.com> Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Showing
想要评论请 注册 或 登录