OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13be1bf
)
ALSA: sgio2audio.c: clean up checking
author
Figo.zhang
<figo1802@gmail.com>
Sun, 7 Jun 2009 05:37:27 +0000
(13:37 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 7 Jun 2009 07:08:43 +0000
(09:08 +0200)
vfree() does it's own 'NULL' check,so no need for check before
calling it.
Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/mips/sgio2audio.c
patch
|
blob
|
history
diff --git
a/sound/mips/sgio2audio.c
b/sound/mips/sgio2audio.c
index
66f3b48
..
e497525
100644
(file)
--- a/
sound/mips/sgio2audio.c
+++ b/
sound/mips/sgio2audio.c
@@
-619,8
+619,7
@@
static int snd_sgio2audio_pcm_hw_params(struct snd_pcm_substream *substream,
/* hw_free callback */
static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream)
{
- if (substream->runtime->dma_area)
- vfree(substream->runtime->dma_area);
+ vfree(substream->runtime->dma_area);
substream->runtime->dma_area = NULL;
return 0;
}