]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: btrtl: Use kvmemdup to simplify the code
authorLi Zetao <lizetao1@huawei.com>
Wed, 21 Aug 2024 01:24:03 +0000 (09:24 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 17:05:57 +0000 (13:05 -0400)
commit52bc7d66659faac6e5a47e3ab38d8c8f590e94e5
treef9399844b2200ad3a6ceb56db22591f1a038a2ce
parentcb45396f96f9671f7a18df481702e19998eb0f4b
Bluetooth: btrtl: Use kvmemdup to simplify the code

Use kvmemdup instead of kvmalloc() + memcpy() to simplify the code.

No functional change intended.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btrtl.c