ieee802154: Use kmemdup instead of duplicating it in ca8210_test_int_driver_write

Replace calls to kmalloc followed by a memcpy with a direct call to
kmemdup.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
This commit is contained in:
YueHaibing 2018-08-09 14:44:29 +08:00 • committed by Stefan Schmidt
commit 5b3686c7aa