* [PATCH 13/14] Big kfree NULL check cleanup - sound
@ 2005-10-13 19:30 Jesper Juhl
0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2005-10-13 19:30 UTC (permalink / raw)
To: linux-kernel
Cc: Andrew Morton, Kyle McMartin, Thibaut Varene, perex, alsa-devel,
Jesper Juhl
This is the sound/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in sound/.
Sorry about the long Cc: list, but I wanted to make sure I included everyone
who's code I've changed with this patch.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
Please see the initial announcement mail on LKML with subject
"[PATCH 00/14] Big kfree NULL check cleanup"
for additional details.
sound/pci/ad1889.c | 3 +--
sound/pci/rme9652/hdspm.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
--- linux-2.6.14-rc4-orig/sound/pci/rme9652/hdspm.c 2005-10-11 22:41:41.000000000 +0200
+++ linux-2.6.14-rc4/sound/pci/rme9652/hdspm.c 2005-10-13 11:49:26.000000000 +0200
@@ -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);
--- linux-2.6.14-rc4-orig/sound/pci/ad1889.c 2005-10-11 22:41:36.000000000 +0200
+++ linux-2.6.14-rc4/sound/pci/ad1889.c 2005-10-13 11:49:33.000000000 +0200
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-13 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-13 19:30 [PATCH 13/14] Big kfree NULL check cleanup - sound Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®