From: Jesper Juhl Date: Mon, 9 Apr 2012 20:52:10 +0000 (+0200) Subject: ALSA: riptide: remove redundant NULL test before release_firmware() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=507230c9997ef47147818508108b97b3e189826f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ALSA: riptide: remove redundant NULL test before release_firmware() release_firmware() deals gracefully with NULL pointers, no need to check first. Signed-off-by: Jesper Juhl Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/riptide/riptide.c b/sound/pci/riptide/riptide.c index 0481d94aac9b..cbeb3f77350c 100644 --- a/sound/pci/riptide/riptide.c +++ b/sound/pci/riptide/riptide.c @@ -1837,8 +1837,7 @@ 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_firmware(chip->fw_entry); release_and_free_resource(chip->res_port); kfree(chip); return 0;