Skip to content
Commit 43914ec9 authored by Tian Tao's avatar Tian Tao Committed by Liwei Song
Browse files

thunderbolt: Use kmemdup instead of kzalloc and memcpy



commit 82096ecf upstream.

Fixes coccicheck warning:
drivers/thunderbolt/dma_test.c:302:13-20: WARNING opportunity for kmemdup.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent 6d41de71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment