Skip to content
Unverified Commit b0a4c7f5 authored by Li Zetao's avatar Li Zetao Committed by Mark Brown
Browse files

ASoC: tas5805m: Use devm_kmemdup to replace devm_kmalloc + memcpy



Use the helper function devm_kmemdup() rather than duplicating its
implementation, which helps to enhance code readability.

Signed-off-by: default avatarLi Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230810114738.2103792-2-lizetao1@huawei.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 85cc1ee9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment