Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 507230c9 authored by Jesper Juhl's avatar Jesper Juhl Committed by Takashi Iwai
Browse files

ALSA: riptide: remove redundant NULL test before release_firmware()



release_firmware() deals gracefully with NULL pointers, no need to check first.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 38be95dd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1837,7 +1837,6 @@ static int snd_riptide_free(struct snd_riptide *chip)
	}
	if (chip->irq >= 0)
		free_irq(chip->irq, chip);
	if (chip->fw_entry)
	release_firmware(chip->fw_entry);
	release_and_free_resource(chip->res_port);
	kfree(chip);