Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a578f3b authored by Jesper Juhl's avatar Jesper Juhl Committed by Jaroslav Kysela
Browse files

[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: default avatarJesper Juhl <Jesper.Juhl@Gmail.Com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0bbbc4ca
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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;
	}
	return 0;
}