]> 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)
commit5ede2b775c5bd647cf5801d22a0c3f455add3129
tree1ec25dd3adc7db7b2137dbb1c4e6335b12e05850
parentdf90b0ae37c36f368fc73f79d07570ecfcbc5c7a
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 31fdcffd6bdb ("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