From: Chen Ni Date: Mon, 7 Apr 2025 06:27:25 +0000 (+0800) Subject: ASoC: tas2781-i2c: Remove unnecessary NULL check before release_firmware() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4c035fab9f42071c4024495afb2cec1409280eed;p=users%2Fjedix%2Flinux-maple.git 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 Link: https://patch.msgid.link/20250407062725.2771916-1-nichen@iscas.ac.cn Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c index b950914b7d485..8d8a84a53766f 100644 --- a/sound/soc/codecs/tas2781-i2c.c +++ b/sound/soc/codecs/tas2781-i2c.c @@ -1505,8 +1505,7 @@ out: tasdevice_dsp_remove(tas_priv); } mutex_unlock(&tas_priv->codec_lock); - if (fmw) - release_firmware(fmw); + release_firmware(fmw); } static int tasdevice_dapm_event(struct snd_soc_dapm_widget *w,