media: usb: Use kmemdup instead of duplicating its function.
authorzhong jiang <zhongjiang@huawei.com>
Tue, 18 Sep 2018 15:25:25 +0000 (11:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Dec 2018 18:27:17 +0000 (13:27 -0500)
commit73f847af391ad51b712b736de8a04bed77213fd9
tree244322a3be594a6d0fb2de5575ca6f3e5a89b3ee
parent458ffce1cb46e46e3cec48b625ed142250475708
media: usb: Use kmemdup instead of duplicating its function.

kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb-v2/gl861.c