From 8ffd597fca5129ac0151ea6eaa02b508bb0eca1a Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Mon, 27 Feb 2006 18:35:46 +0100 Subject: [PATCH] --- yaml --- r: 22742 b: refs/heads/master c: 2a578f3b4c5dbac4828de52e72bb79f3e9f4d1a2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 91e55968dcd8..ae1f2751add5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0bbbc4ca7e2459f2750bd4bd8dda2ccbf7a71f02 +refs/heads/master: 2a578f3b4c5dbac4828de52e72bb79f3e9f4d1a2 diff --git a/trunk/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c b/trunk/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c index 962e6d525564..7f2a4de1d35d 100644 --- a/trunk/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c +++ b/trunk/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; }