Li Zetao <lizetao1@xxxxxxxxxx> wrote: > Use the helper function devm_kmemdup() rather than duplicating its > implementation, which helps to enhance code readability. > > Signed-off-by: Li Zetao <lizetao1@xxxxxxxxxx> > Reviewed-by: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx> Patch applied to wireless-next.git, thanks. eaa8023e9bb3 wifi: wfx: Use devm_kmemdup to replace devm_kmalloc + memcpy -- https://patchwork.kernel.org/project/linux-wireless/patch/20230810114939.2104013-1-lizetao1@xxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches