thunderbolt: Use kmemdup instead of kzalloc and memcpy
authorTian Tao <tiantao6@hisilicon.com>
Wed, 23 Dec 2020 01:26:33 +0000 (09:26 +0800)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 28 Dec 2020 09:41:53 +0000 (12:41 +0300)
commit82096ecf589d8224447213c4592e54598fea0b9d
tree07df064cb39745eb318483175dc2d7cf0e39d5c0
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
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: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/dma_test.c