]> err.no Git - linux-2.6/commitdiff
[ALSA] echoaudio - Remove kfree_nocheck()
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Jun 2006 14:39:36 +0000 (16:39 +0200)
committerJaroslav Kysela <perex@suse.cz>
Wed, 28 Jun 2006 17:31:52 +0000 (19:31 +0200)
Remove obsoleted kfree_nochec() (for debug).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/echoaudio/echoaudio.c

index e695502f71353366522c5df72dcff4525b76d4f3..43b408ada1da5db8f9ff5f1a357006f3da8f2d0b 100644 (file)
@@ -1878,10 +1878,9 @@ static int snd_echo_free(struct echoaudio *chip)
        if (chip->dsp_registers)
                iounmap(chip->dsp_registers);
 
-       if (chip->iores) {
-               release_resource(chip->iores);
-               kfree_nocheck(chip->iores);
-       }
+       if (chip->iores)
+               release_and_free_resource(chip->iores);
+
        DE_INIT(("MMIO freed.\n"));
 
        pci_disable_device(chip->pci);