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)
commit27b196c19c5a10abf1bf5a379c1a6154a1686ec4
tree1ec25dd3adc7db7b2137dbb1c4e6335b12e05850
parentb9cb044f35fd5d6fdff92a0be23b020372525fef
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 b9088535e102 ("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