|
@@ -720,10 +720,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)
|
|
static int snd_pcm_free_vmalloc_buffer(struct snd_pcm_substream *subs)
|
|
{
|
|
{
|
|
struct snd_pcm_runtime *runtime = subs->runtime;
|
|
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;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|