[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250407061939.2771803-1-nichen@iscas.ac.cn>
Date: Mon, 7 Apr 2025 14:19:39 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: perex@...ex.cz,
tiwai@...e.com,
dan.carpenter@...aro.org,
baojun.xu@...com,
broonie@...nel.org,
ckeepax@...nsource.cirrus.com,
andriy.shevchenko@...ux.intel.com,
nathan@...nel.org
Cc: linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org,
Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] 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@...as.ac.cn>
---
sound/pci/hda/tas2781_hda_spi.c | 3 +--
1 file changed, 1 insertion(+), 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);
}
--
2.25.1
Powered by blists - more mailing lists