diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-10 00:52:10 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-10 10:42:33 +0400 |
commit | 507230c9997ef47147818508108b97b3e189826f (patch) | |
tree | 7b791c19997104036a6318dc5c745b7b08e8ebf2 /sound/pci/riptide | |
parent | 38be95dd3d314bd393a26f6e441ae2c57ef7f064 (diff) | |
download | linux-507230c9997ef47147818508108b97b3e189826f.tar.xz |
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>
Diffstat (limited to 'sound/pci/riptide')
-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) } 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; |