Skip to content

Commit

Permalink
[ALSA] Don't NULL check vfree argument in pdaudiocf_pcm.c
Browse files Browse the repository at this point in the history
Modules: PDAudioCF driver

Don't check pointers passed to vfree for null in pdaudiocf_pcm.c

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Jesper Juhl authored and Jaroslav Kysela committed Mar 22, 2006
1 parent 0bbbc4c commit 2a578f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2a578f3

Please sign in to comment.