diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-04-09 22:52:10 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-04-10 08:42:33 +0200 |
commit | 507230c9997ef47147818508108b97b3e189826f (patch) | |
tree | 7b791c19997104036a6318dc5c745b7b08e8ebf2 /sound | |
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>
Diffstat (limited to 'sound')
-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; |