]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: skl-topology: Use kmemdup to replace kzalloc + memcpy
authorzhong jiang <zhongjiang@huawei.com>
Sat, 8 Sep 2018 08:36:20 +0000 (16:36 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 10 Sep 2018 14:20:20 +0000 (15:20 +0100)
commitbe92b3168559ea61d6e2b0db74855799d2342b1b
tree1af371ece3d3aa8b2677b9e457e564c3cb9afd17
parentb612367417807070909fc18fad8fb91187a45788
ASoC: skl-topology: Use kmemdup to replace kzalloc + memcpy

kmemdup has implemented the function that kzalloc() + memcpy() will
do. and we prefer to kmemdup rather than the open coded implementation.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c