Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: pcm6240: Remove unnecessary NULL check before release_firmware()

release_firmware() checks for NULL pointers internally.
Remove unneeded NULL check for fmw here.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://patch.msgid.link/20250407062352.2771861-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
4423753a 348679ff

+1 -2
+1 -2
sound/soc/codecs/pcm6240.c
··· 1642 1642 } 1643 1643 ret = pcmdev_profile_ctrl_add(pcm_dev); 1644 1644 out: 1645 - if (fw_entry) 1646 - release_firmware(fw_entry); 1645 + release_firmware(fw_entry); 1647 1646 1648 1647 mutex_unlock(&pcm_dev->codec_lock); 1649 1648 return ret;