diff options
| author | Chen Ni <[email protected]> | 2025-04-07 06:19:39 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2025-04-07 07:18:54 +0000 |
| commit | 120305ab9017ee76ac0bed4b72b349faeb1deb1c (patch) | |
| tree | 6f17702c5fb30631cf25412d0abf27e1ef3458aa | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-120305ab9017ee76ac0bed4b72b349faeb1deb1c.tar.gz kernel-120305ab9017ee76ac0bed4b72b349faeb1deb1c.zip | |
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
| -rw-r--r-- | sound/pci/hda/tas2781_hda_spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/tas2781_hda_spi.c b/sound/pci/hda/tas2781_hda_spi.c index 399f2e4c3b62..25175ff4b3aa 100644 --- a/sound/pci/hda/tas2781_hda_spi.c +++ b/sound/pci/hda/tas2781_hda_spi.c @@ -1003,8 +1003,7 @@ static void tasdev_fw_ready(const struct firmware *fmw, void *context) */ out: - if (fmw) - release_firmware(fmw); + release_firmware(fmw); pm_runtime_mark_last_busy(tas_hda->priv->dev); pm_runtime_put_autosuspend(tas_hda->priv->dev); } |
