diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 16:52:10 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-10 02:42:33 -0400 |
commit | 507230c9997ef47147818508108b97b3e189826f (patch) | |
tree | 7b791c19997104036a6318dc5c745b7b08e8ebf2 | |
parent | 38be95dd3d314bd393a26f6e441ae2c57ef7f064 (diff) |
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 <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/riptide/riptide.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
1837 | } | 1837 | } |
1838 | if (chip->irq >= 0) | 1838 | if (chip->irq >= 0) |
1839 | free_irq(chip->irq, chip); | 1839 | free_irq(chip->irq, chip); |
1840 | if (chip->fw_entry) | 1840 | release_firmware(chip->fw_entry); |
1841 | release_firmware(chip->fw_entry); | ||
1842 | release_and_free_resource(chip->res_port); | 1841 | release_and_free_resource(chip->res_port); |
1843 | kfree(chip); | 1842 | kfree(chip); |
1844 | return 0; | 1843 | return 0; |