From: Jesper Juhl This is the sound/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in sound/. Signed-off-by: Jesper Juhl Cc: Jaroslav Kysela Cc: Takashi Iwai Signed-off-by: Andrew Morton --- sound/pci/ad1889.c | 3 +-- sound/pci/rme9652/hdspm.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff -puN sound/pci/ad1889.c~kfree-cleanup-sound sound/pci/ad1889.c --- devel/sound/pci/ad1889.c~kfree-cleanup-sound 2005-10-14 01:45:04.000000000 -0700 +++ devel-akpm/sound/pci/ad1889.c 2005-10-14 01:45:04.000000000 -0700 @@ -982,8 +982,7 @@ snd_ad1889_create(snd_card_t *card, return 0; free_and_ret: - if (chip) - kfree(chip); + kfree(chip); pci_disable_device(pci); return err; diff -puN sound/pci/rme9652/hdspm.c~kfree-cleanup-sound sound/pci/rme9652/hdspm.c --- devel/sound/pci/rme9652/hdspm.c~kfree-cleanup-sound 2005-10-14 01:45:04.000000000 -0700 +++ devel-akpm/sound/pci/rme9652/hdspm.c 2005-10-14 01:45:04.000000000 -0700 @@ -3563,8 +3563,7 @@ static int snd_hdspm_free(hdspm_t * hdsp free_irq(hdspm->irq, (void *) hdspm); - if (hdspm->mixer) - kfree(hdspm->mixer); + kfree(hdspm->mixer); if (hdspm->iobase) iounmap(hdspm->iobase); _