projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38be95d
)
ALSA: riptide: remove redundant NULL test before release_firmware()
author
Jesper Juhl
<jj@chaosbits.net>
Mon, 9 Apr 2012 20:52:10 +0000
(22:52 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 10 Apr 2012 06:42:33 +0000
(08:42 +0200)
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>
sound/pci/riptide/riptide.c
patch
|
blob
|
history
diff --git
a/sound/pci/riptide/riptide.c
b/sound/pci/riptide/riptide.c
index 0481d94aac9b9e3027467aa744861d947c5373cc..cbeb3f77350c6e42ff8861c7304a3b5b4957920c 100644
(file)
--- 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;