diff options
author | Chen Ni <nichen@iscas.ac.cn> | 2025-03-25 16:49:39 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-03-25 11:54:44 +0100 |
commit | 3a949fc08103c0ce3a1d0ef30459c7b3acc6a214 (patch) | |
tree | 626f13dbe66f59997d9a5a25595e79e7288ffd1f /sound | |
parent | 09e269f550f548a1249ba5282747fe67ba177608 (diff) |
ALSA: hda: 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/20250325084939.801117-1-nichen@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/tas2781_hda_i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2c.c index 50c5e5f26589..9ed49b0dbe6b 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -753,8 +753,7 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context) out: mutex_unlock(&tas_hda->priv->codec_lock); - if (fmw) - release_firmware(fmw); + release_firmware(fmw); pm_runtime_mark_last_busy(tas_hda->dev); pm_runtime_put_autosuspend(tas_hda->dev); } |