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

ASoC: tas2781-i2c: 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/20250407062725.2771916-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Chen Ni and committed by
Mark Brown
4c035fab 03affa51

+1 -2
+1 -2
sound/soc/codecs/tas2781-i2c.c
··· 1505 1505 tasdevice_dsp_remove(tas_priv); 1506 1506 } 1507 1507 mutex_unlock(&tas_priv->codec_lock); 1508 - if (fmw) 1509 - release_firmware(fmw); 1508 + release_firmware(fmw); 1510 1509 } 1511 1510 1512 1511 static int tasdevice_dapm_event(struct snd_soc_dapm_widget *w,