aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/usbaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/usbaudio.c')
-rw-r--r--sound/usb/usbaudio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c
index 7b1b9f29f377..039f27dc1f08 100644
--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -720,10 +720,9 @@ static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs, size_t s
720static int snd_pcm_free_vmalloc_buffer(struct snd_pcm_substream *subs) 720static int snd_pcm_free_vmalloc_buffer(struct snd_pcm_substream *subs)
721{ 721{
722 struct snd_pcm_runtime *runtime = subs->runtime; 722 struct snd_pcm_runtime *runtime = subs->runtime;
723 if (runtime->dma_area) { 723
724 vfree(runtime->dma_area); 724 vfree(runtime->dma_area);
725 runtime->dma_area = NULL; 725 runtime->dma_area = NULL;
726 }
727 return 0; 726 return 0;
728} 727}
729 728