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: wm_adsp: 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>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20250407063403.2772040-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
03affa51 4423753a

+2 -4
+2 -4
sound/soc/codecs/wm_adsp.c
··· 718 718 const struct firmware *coeff_firmware, 719 719 char *coeff_filename) 720 720 { 721 - if (wmfw_firmware) 722 - release_firmware(wmfw_firmware); 721 + release_firmware(wmfw_firmware); 723 722 kfree(wmfw_filename); 724 723 725 - if (coeff_firmware) 726 - release_firmware(coeff_firmware); 724 + release_firmware(coeff_firmware); 727 725 kfree(coeff_filename); 728 726 } 729 727