projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bbbc4c
)
[ALSA] Don't NULL check vfree argument in pdaudiocf_pcm.c
author
Jesper Juhl
<Jesper.Juhl@Gmail.Com>
Mon, 27 Feb 2006 17:35:46 +0000
(18:35 +0100)
committer
Jaroslav Kysela
<perex@suse.cz>
Wed, 22 Mar 2006 09:31:45 +0000
(10:31 +0100)
Modules: PDAudioCF driver
Don't check pointers passed to vfree for null in pdaudiocf_pcm.c
Signed-off-by: Jesper Juhl <Jesper.Juhl@Gmail.Com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
index 962e6d525564a038d9c420ed77e2d565ba65b4f0..7f2a4de1d35d5b2405f8ce5693ed6d6d18cab57a 100644
(file)
--- 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
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;
}