Skip to content

Commit 3a949fc

Browse files
Chen Nitiwai
authored andcommitted
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>
1 parent 09e269f commit 3a949fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/pci/hda/tas2781_hda_i2c.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,8 +753,7 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context)
753753

754754
out:
755755
mutex_unlock(&tas_hda->priv->codec_lock);
756-
if (fmw)
757-
release_firmware(fmw);
756+
release_firmware(fmw);
758757
pm_runtime_mark_last_busy(tas_hda->dev);
759758
pm_runtime_put_autosuspend(tas_hda->dev);
760759
}

0 commit comments

Comments
 (0)