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>
This commit is contained in:
Chen Ni 2025-04-07 14:27:25 +08:00 committed by Mark Brown
parent 03affa51cc
commit 4c035fab9f
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1505,8 +1505,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
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,