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

kmemdup has implemented the function that kzalloc() + memcpy() will
do. and we prefer to use the 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/qcom/qdsp6/q6core.c