]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: atom: don't keep a temporary string in fixup_tplg_name
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 15 Jul 2022 14:52:12 +0000 (09:52 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 15 Jul 2022 19:11:35 +0000 (20:11 +0100)
commit127e37f9370e7660048b000ba39360f8f0e615ac
tree1ec25dd3adc7db7b2137dbb1c4e6335b12e05850
parent846ccf1206f606fe3df019d40b754ef2de08259c
ASoC: SOF: Intel: atom: don't keep a temporary string in fixup_tplg_name

fixup_tplg_name() doesn't need to keep the string, allocated for
filename - it's temporary.

Inspired by similar change for hda:
commit 483248cfe530 ("ASoC: SOF: Intel: HDA: don't keep a temporary variable")

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220715145216.277003-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/atom.c