Skip to content

Commit 09e269f

Browse files
Chen Nitiwai
authored andcommitted
ALSA: hda: cs35l56: 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> Link: https://patch.msgid.link/20250325084639.801054-1-nichen@iscas.ac.cn Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent be8cd36 commit 09e269f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sound/pci/hda/cs35l56_hda.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,10 @@ static void cs35l56_hda_release_firmware_files(const struct firmware *wmfw_firmw
546546
const struct firmware *coeff_firmware,
547547
char *coeff_filename)
548548
{
549-
if (wmfw_firmware)
550-
release_firmware(wmfw_firmware);
549+
release_firmware(wmfw_firmware);
551550
kfree(wmfw_filename);
552551

553-
if (coeff_firmware)
554-
release_firmware(coeff_firmware);
552+
release_firmware(coeff_firmware);
555553
kfree(coeff_filename);
556554
}
557555

0 commit comments

Comments
 (0)