projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8cd36
)
ALSA: hda: cs35l56: Remove unnecessary NULL check before release_firmware()
author
Chen Ni
<nichen@iscas.ac.cn>
Tue, 25 Mar 2025 08:46:39 +0000
(16:46 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 25 Mar 2025 10:54:37 +0000
(11:54 +0100)
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/20250325084639.801054-1-nichen@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l56_hda.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/cs35l56_hda.c
b/sound/pci/hda/cs35l56_hda.c
index 4ef7878e8fd4b49b3a22946cc6571296d237779b..235d22049aa9fa459efa18afd45b093e14cd962c 100644
(file)
--- a/
sound/pci/hda/cs35l56_hda.c
+++ b/
sound/pci/hda/cs35l56_hda.c
@@
-546,12
+546,10
@@
static void cs35l56_hda_release_firmware_files(const struct firmware *wmfw_firmw
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);
}