Commit fc58422a authored by Jesper Juhl's avatar Jesper Juhl Committed by Jaroslav Kysela

[ALSA] Big kfree NULL check cleanup - sound

Modules: AD1889 driver,RME9652 driver

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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8433a509
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
#include "ad1889.h" #include "ad1889.h"
#include "ac97/ac97_id.h" #include "ac97/ac97_id.h"
#define AD1889_DRVVER "$Revision: 1.3 $" #define AD1889_DRVVER "$Revision: 1.4 $"
MODULE_AUTHOR("Kyle McMartin <kyle@parisc-linux.org>, Thibaut Varene <t-bone@parisc-linux.org>"); MODULE_AUTHOR("Kyle McMartin <kyle@parisc-linux.org>, Thibaut Varene <t-bone@parisc-linux.org>");
MODULE_DESCRIPTION("Analog Devices AD1889 ALSA sound driver"); MODULE_DESCRIPTION("Analog Devices AD1889 ALSA sound driver");
...@@ -982,7 +982,6 @@ snd_ad1889_create(snd_card_t *card, ...@@ -982,7 +982,6 @@ snd_ad1889_create(snd_card_t *card,
return 0; return 0;
free_and_ret: free_and_ret:
if (chip)
kfree(chip); kfree(chip);
pci_disable_device(pci); pci_disable_device(pci);
......
...@@ -3563,7 +3563,6 @@ static int snd_hdspm_free(hdspm_t * hdspm) ...@@ -3563,7 +3563,6 @@ static int snd_hdspm_free(hdspm_t * hdspm)
free_irq(hdspm->irq, (void *) hdspm); free_irq(hdspm->irq, (void *) hdspm);
if (hdspm->mixer)
kfree(hdspm->mixer); kfree(hdspm->mixer);
if (hdspm->iobase) if (hdspm->iobase)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment