ALSA: riptide: remove redundant NULL test before release_firmware()
authorJesper Juhl <jj@chaosbits.net>
Mon, 9 Apr 2012 20:52:10 +0000 (22:52 +0200)
committerTakashi 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

index 0481d94aac9b9e3027467aa744861d947c5373cc..cbeb3f77350c6e42ff8861c7304a3b5b4957920c 100644 (file)
@@ -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;