Skip to content

Commit d335a96

Browse files
committed
ALSA: hda/tas2781: Remove unnecessary NULL check before release_firmware()
JIRA: https://issues.redhat.com/browse/RHEL-80657 commit 120305a Author: Chen Ni <nichen@iscas.ac.cn> Date: Mon Apr 7 14:19:39 2025 +0800 ALSA: hda/tas2781: 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> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250407061939.2771803-1-nichen@iscas.ac.cn Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
1 parent b90dbde commit d335a96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/pci/hda/tas2781_hda_spi.c

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

10051005
out:
1006-
if (fmw)
1007-
release_firmware(fmw);
1006+
release_firmware(fmw);
10081007
pm_runtime_mark_last_busy(tas_hda->priv->dev);
10091008
pm_runtime_put_autosuspend(tas_hda->priv->dev);
10101009
}

0 commit comments

Comments
 (0)