diff options
author | Jesper Juhl <Jesper.Juhl@Gmail.Com> | 2006-02-27 20:35:46 +0300 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 12:31:45 +0300 |
commit | 2a578f3b4c5dbac4828de52e72bb79f3e9f4d1a2 (patch) | |
tree | e1fffa1a7c55bfcb23353b41063e9d5b3b57cf0f /sound/pcmcia | |
parent | 0bbbc4ca7e2459f2750bd4bd8dda2ccbf7a71f02 (diff) | |
download | linux-2a578f3b4c5dbac4828de52e72bb79f3e9f4d1a2.tar.xz |
[ALSA] Don't NULL check vfree argument in pdaudiocf_pcm.c
Modules: PDAudioCF driver
Don't check pointers passed to vfree for null in pdaudiocf_pcm.c
Signed-off-by: Jesper Juhl <Jesper.Juhl@Gmail.Com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pcmcia')
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c index 962e6d525564..7f2a4de1d35d 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c @@ -66,10 +66,9 @@ static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs, size_t s static int snd_pcm_free_vmalloc_buffer(struct snd_pcm_substream *subs) { struct snd_pcm_runtime *runtime = subs->runtime; - if (runtime->dma_area) { - vfree(runtime->dma_area); - runtime->dma_area = NULL; - } + + vfree(runtime->dma_area); + runtime->dma_area = NULL; return 0; } |