diff options
-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 | |||
66 | static int snd_pcm_free_vmalloc_buffer(struct snd_pcm_substream *subs) | 66 | static int snd_pcm_free_vmalloc_buffer(struct snd_pcm_substream *subs) |
67 | { | 67 | { |
68 | struct snd_pcm_runtime *runtime = subs->runtime; | 68 | struct snd_pcm_runtime *runtime = subs->runtime; |
69 | if (runtime->dma_area) { | 69 | |
70 | vfree(runtime->dma_area); | 70 | vfree(runtime->dma_area); |
71 | runtime->dma_area = NULL; | 71 | runtime->dma_area = NULL; |
72 | } | ||
73 | return 0; | 72 | return 0; |
74 | } | 73 | } |
75 | 74 | ||