mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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>
This commit is contained in:
parent
09e269f550
commit
3a949fc081
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user