]> git.hungrycats.org Git - linux/commit
ASoC: SOF: Use auto-cleanup for firmware loading
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Aug 2026 14:00:03 +0000 (16:00 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Aug 2026 14:34:17 +0000 (15:34 +0100)
commit6d0a9e4df17979ef8acbf8d7d6145fb1375e45cd
tree48c060876599e971cf8aab30a28b13d86e620d83
parent73a5271e10da282705793b6e7f3f1197b1ea998a
ASoC: SOF: Use auto-cleanup for firmware loading

Simplify the code to manage the firmware loading with __free(firmware)
and __free(kfree) auto-cleanups for the firmware data and the temporary
string or array.

Only the code refactoring, no functional changes.

Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Bard Liao <yung-chuan.liao@linux.intel.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Cc: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tested-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260806140006.1412298-32-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/fw-file-profile.c
sound/soc/sof/topology.c