* [PATCH] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware()
@ 2025-04-07 6:34 Chen Ni
2025-04-07 8:18 ` Charles Keepax
2025-04-08 9:24 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2025-04-07 6:34 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, ckeepax, rf, simont, peterz
Cc: patches, linux-sound, linux-kernel, Chen Ni
release_firmware() checks for NULL pointers internally.
Remove unneeded NULL check for fmw here.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
sound/soc/codecs/wm_adsp.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 91c8697c29c3..ffd826f30e15 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -718,12 +718,10 @@ static void wm_adsp_release_firmware_files(struct wm_adsp *dsp,
const struct firmware *coeff_firmware,
char *coeff_filename)
{
- if (wmfw_firmware)
- release_firmware(wmfw_firmware);
+ release_firmware(wmfw_firmware);
kfree(wmfw_filename);
- if (coeff_firmware)
- release_firmware(coeff_firmware);
+ release_firmware(coeff_firmware);
kfree(coeff_filename);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware()
2025-04-07 6:34 [PATCH] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware() Chen Ni
@ 2025-04-07 8:18 ` Charles Keepax
2025-04-08 9:24 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2025-04-07 8:18 UTC (permalink / raw)
To: Chen Ni
Cc: lgirdwood, broonie, perex, tiwai, rf, simont, peterz, patches,
linux-sound, linux-kernel
On Mon, Apr 07, 2025 at 02:34:03PM +0800, Chen Ni wrote:
> 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: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware()
2025-04-07 6:34 [PATCH] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware() Chen Ni
2025-04-07 8:18 ` Charles Keepax
@ 2025-04-08 9:24 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2025-04-08 9:24 UTC (permalink / raw)
To: lgirdwood, perex, tiwai, ckeepax, rf, simont, peterz, Chen Ni
Cc: patches, linux-sound, linux-kernel
On Mon, 07 Apr 2025 14:34:03 +0800, Chen Ni wrote:
> release_firmware() checks for NULL pointers internally.
> Remove unneeded NULL check for fmw here.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware()
commit: 03affa51cc995ac0d961990c2ca916fc87340723
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-08 9:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 6:34 [PATCH] ASoC: wm_adsp: Remove unnecessary NULL check before release_firmware() Chen Ni
2025-04-07 8:18 ` Charles Keepax
2025-04-08 9:24 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox