mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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:
parent
03affa51cc
commit
4c035fab9f
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user