Explorar o código

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>
Jesper Juhl %!s(int64=13) %!d(string=hai) anos
pai
achega
507230c999
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      sound/pci/riptide/riptide.c

+ 1 - 2
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;