ieee802154: Use kmemdup instead of duplicating it in ca8210_test_int_driver_write
commit5b3686c7aaade973b8806dba4ecc99bec8c988f3
authorYueHaibing <yuehaibing@huawei.com>
Thu, 9 Aug 2018 06:44:29 +0000 (9 14:44 +0800)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 21 Sep 2018 08:52:15 +0000 (21 10:52 +0200)
tree729dc156e0e147bdb1ae3bc4db752c4ae70d1bfb
parent10bc6a6042c900934a097988b5d50e3cf3f91781
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>
drivers/net/ieee802154/ca8210.c