]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: core: Use kasprintf instead of opencoding it
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 14 May 2013 09:05:32 +0000 (11:05 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 14 May 2013 12:52:52 +0000 (16:52 +0400)
commit2b581074357c42f63ae827ee28c9f244b91a38ac
tree9b809dd8b56bcfc88393328f58919ca9a8215109
parentbd477c31ca3ae85645fb2852bfa3954a623f9237
ASoC: core: Use kasprintf instead of opencoding it

kasprintf calculates the size of the result string, allocates a buffer large
enough to hold the string and then performs the format string operation. There
are a couple of places in ASoC where these three steps are done by hand and
where kasprintf can be used instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c
sound/soc/soc-dapm.c